Standard python exc_info for re-raising
(self)
| 120 | |
| 121 | @property |
| 122 | def standard_exc_info(self): |
| 123 | """Standard python exc_info for re-raising""" |
| 124 | tb = self.frames[0] |
| 125 | # the frame will be an actual traceback (or transparent proxy) if |
| 126 | # we are on pypy or a python implementation with support for tproxy |
| 127 | if type(tb) is not TracebackType: |
| 128 | tb = tb.tb |
| 129 | return self.exc_type, self.exc_value, tb |
| 130 | |
| 131 | |
| 132 | def make_traceback(exc_info, source_hint=None): |