| 133 | return self.tb |
| 134 | |
| 135 | class _ExceptionWithTraceback: |
| 136 | def __init__(self, exc, tb): |
| 137 | tb = ''.join(format_exception(type(exc), exc, tb)) |
| 138 | self.exc = exc |
| 139 | # Traceback object needs to be garbage-collected as its frames |
| 140 | # contain references to all the objects in the exception scope |
| 141 | self.exc.__traceback__ = None |
| 142 | self.tb = '\n"""\n%s"""' % tb |
| 143 | def __reduce__(self): |
| 144 | return _rebuild_exc, (self.exc, self.tb) |
| 145 | |
| 146 | def _rebuild_exc(exc, tb): |
| 147 | exc.__cause__ = _RemoteTraceback(tb) |
no outgoing calls
no test coverage detected
searching dependent graphs…