diff options
Diffstat (limited to 'Lib/contextlib.py')
-rw-r--r-- | Lib/contextlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/contextlib.py b/Lib/contextlib.py index bc810b0bc8..38ec577598 100644 --- a/Lib/contextlib.py +++ b/Lib/contextlib.py @@ -125,7 +125,7 @@ def nested(*managers): # Don't rely on sys.exc_info() still containing # the right information. Another exception may # have been raised and caught by an exit method - raise exc[0], exc[1], exc[2] + raise exc[0](exc[1]).with_traceback(exc[2]) class closing(object): |