• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zopefoundation / zExceptions / 5387717597

pending completion
5387717597

push

github

web-flow
Drop support for Python < 3.6 (#15)

* Bumped version for breaking release.

* Drop support for Python 2.7, 3.5, 3.6.

89 of 136 branches covered (65.44%)

Branch coverage included in aggregate %.

22 of 22 new or added lines in 6 files covered. (100.0%)

715 of 788 relevant lines covered (90.74%)

0.91 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/zExceptions/TracebackSupplement.py
1
##############################################################################
2
#
3
# Copyright (c) 2001, 2002 Zope Foundation and Contributors.
4
# All Rights Reserved.
5
#
6
# This software is subject to the provisions of the Zope Public License,
7
# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
8
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
9
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
10
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
11
# FOR A PARTICULAR PURPOSE.
12
#
13
##############################################################################
14
# Stock __traceback_supplement__ implementations
15

16
from html import escape
×
17

18

19
class PathTracebackSupplement:
×
20
    """Implementation of ITracebackSupplement"""
21
    pp = None
×
22

23
    def __init__(self, object):
×
24
        self.object = object
×
25
        if hasattr(object, 'getPhysicalPath'):
×
26
            self.pp = '/'.join(object.getPhysicalPath())
×
27
        if hasattr(object, 'absolute_url'):
×
28
            self.source_url = '%s/manage_main' % object.absolute_url()
×
29

30
    def getInfo(self, as_html=0):
×
31
        if self.pp is None:
×
32
            return
×
33
        if as_html:
×
34
            return '<b>Physical Path:</b>%s' % (escape(self.pp))
×
35
        else:
36
            return '   - Physical Path: %s' % self.pp
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc