mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
Issue #1066: implement PEP 3109, 2/3 of PEP 3134.
This commit is contained in:
parent
150b7d7d02
commit
828f04ac3f
32 changed files with 761 additions and 253 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue