diff options
author | Collin Winter <collinw@gmail.com> | 2007-09-01 20:27:58 +0000 |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-09-01 20:27:58 +0000 |
commit | a1c2dada017abc9e45d1fff82addcc953ab4efb1 (patch) | |
tree | 6b22d40e843bc78967fb636c73877e69a79f8d01 /Lib/contextlib.py | |
parent | 049928dc441bf3004b5cca014e8bfd167d14cd72 (diff) | |
download | cpython-a1c2dada017abc9e45d1fff82addcc953ab4efb1.tar.gz |
Fix a poorly-translated raise statement in contextlib.
Diffstat (limited to 'Lib/contextlib.py')
-rw-r--r-- | Lib/contextlib.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/contextlib.py b/Lib/contextlib.py index 38ec577598..fba4889002 100644 --- a/Lib/contextlib.py +++ b/Lib/contextlib.py @@ -125,7 +125,8 @@ 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]).with_traceback(exc[2]) + # exc[1] already has the __traceback__ attribute populated + raise exc[1] class closing(object): |