summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorMariatta <Mariatta@users.noreply.github.com>2017-04-13 10:14:53 (GMT)
committerGitHub <noreply@github.com>2017-04-13 10:14:53 (GMT)
commit4d015a40a7b9c3c1b8cfbe81453187d700a43163 (patch)
treecafa37d8b357968486792e40e9625163e0c45aea /Misc/NEWS
parentc0f4240fac397e1cdd1ee202fc1ce6eb23037d06 (diff)
downloadcpython-4d015a40a7b9c3c1b8cfbe81453187d700a43163.zip
cpython-4d015a40a7b9c3c1b8cfbe81453187d700a43163.tar.gz
cpython-4d015a40a7b9c3c1b8cfbe81453187d700a43163.tar.bz2
[3.5] bpo-29692: contextlib.contextmanager may incorrectly unchain RuntimeError (GH-949) (#1107)
contextlib._GeneratorContextManager.__exit__ includes a special case to deal with PEP 479 RuntimeErrors created when `StopIteration` is thrown into the context manager body. Previously this check was too permissive, and undid one level of chaining on *all* RuntimeError instances, not just those that wrapped a StopIteration instance. (cherry picked from commit 00c75e9a45ff0366c185e9e8a2e23af5a35481b0)
Diffstat (limited to 'Misc/NEWS')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index fd3814c..0caeefd 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -48,6 +48,9 @@ Extension Modules
Library
-------
+- bpo-29692: Fixed arbitrary unchaining of RuntimeError exceptions in
+ contextlib.contextmanager.
+ Patch by Siddharth Velankar.
- bpo-29998: Pickling and copying ImportError now preserves name and path
attributes.