commit | 828f04ac3f0dd3b68b4dbf42a79ebb846d1de568 | [log] [tgz] |
---|---|---|
author | Collin Winter <collinw@gmail.com> | Fri Aug 31 00:04:24 2007 +0000 |
committer | Collin Winter <collinw@gmail.com> | Fri Aug 31 00:04:24 2007 +0000 |
tree | 21e25d3d969ce636c32539e4d4b5255dc4c85702 | |
parent | 150b7d7d02eca6970d792f3e6887f957a36b6ca2 [diff] [blame] |
Issue #1066: implement PEP 3109, 2/3 of PEP 3134.
diff --git a/Lib/contextlib.py b/Lib/contextlib.py index bc810b0..38ec577 100644 --- a/Lib/contextlib.py +++ b/Lib/contextlib.py
@@ -125,7 +125,7 @@ # 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):