]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34066: Disabled interruption before SETUP_WITH and BEFORE_ASYNC_WITH. (GH-8159)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 9 Jul 2018 13:31:03 +0000 (06:31 -0700)
committerGitHub <noreply@github.com>
Mon, 9 Jul 2018 13:31:03 +0000 (06:31 -0700)
commitf5197ddfd0f2c5da848af57196448810bd18bb82
tree1f77f2bf61fa8bbd2ffa8f94bb635e32a7f99f56
parent7c43b801503c802ed6ea4b811f5bc73791249d94
bpo-34066: Disabled interruption before SETUP_WITH and BEFORE_ASYNC_WITH. (GH-8159)

This will prevent emitting a resource warning when the execution was
interrupted by Ctrl-C between calling open() and entering a 'with' block
in "with open()".
(cherry picked from commit 3f4d90d4d72921f16babd3f52d7df804916af224)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Misc/NEWS.d/next/Core and Builtins/2018-07-07-20-15-34.bpo-34066.y9vs6s.rst [new file with mode: 0644]
Python/ceval.c