]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #27123: When an exception is raised within the context being
authorGregory P. Smith <greg@krypto.org>
Tue, 14 Jun 2016 16:24:31 +0000 (09:24 -0700)
committerGregory P. Smith <greg@krypto.org>
Tue, 14 Jun 2016 16:24:31 +0000 (09:24 -0700)
commit881aa389725b5becaa5f3115d97563fc2c69a70d
tree9e5835461ca77d86e4c0f2c68f4241a26b01dd68
parentc206f1eb1c4d5ac397ce7059e56bb201e44a0ce9
parentba2ecd68414b9c53d00560579f5bc13459bc0449
Issue #27123: When an exception is raised within the context being
managed by a contextlib.ExitStack() and one of the exit stack
generators catches and raises it in a chain, do not re-raise the
original exception when exiting, let the new chained one through.
This avoids the PEP 479 bug described in issue25782.
Lib/contextlib.py
Lib/test/test_contextlib.py
Misc/NEWS