home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- __docformat__ = 'restructuredtext en'
- import traceback
-
- class ITracebackFormatter(object):
- kind = 'traceback'
- identifier = None
-
- def __call__(self, exc_type, exc_value, exc_traceback):
- raise NotImplementedError
-
-
-
- class PlainTracebackFormatter(ITracebackFormatter):
- identifier = 'plain'
-
- def __init__(self, limit = None):
- self.limit = limit
-
-
- def __call__(self, exc_type, exc_value, exc_traceback):
- lines = traceback.format_tb(exc_traceback, self.limit)
- lines.append('%s: %s' % (exc_type.__name__, exc_value))
- return '\n'.join(lines)
-
-
-