(exc_details)
| 272 | return _fix_exception_context |
| 273 | |
| 274 | def _reraise_with_existing_context(exc_details): |
| 275 | try: |
| 276 | # bare "raise exc_details[1]" replaces our carefully |
| 277 | # set-up context |
| 278 | fixed_ctx = exc_details[1].__context__ |
| 279 | raise exc_details[1] |
| 280 | except BaseException: |
| 281 | exc_details[1].__context__ = fixed_ctx |
| 282 | raise |
| 283 | else: |
| 284 | # No exception context in Python 2 |
| 285 | def _make_context_fixer(frame_exc): |