]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.6] bpo-34066: Disabled interruption before SETUP_WITH and BEFORE_ASYNC_WITH. ...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 9 Jul 2018 16:02:25 +0000 (19:02 +0300)
committerGitHub <noreply@github.com>
Mon, 9 Jul 2018 16:02:25 +0000 (19:02 +0300)
commiteeaae26ce5abce56292330c29459337d6bd57aaf
tree9cf9140ce8369234c27a6bcd080c49f954e0cb7d
parent13d1025e43068ba9f9da32b2e19f53bba9d91806
[3.6] bpo-34066: Disabled interruption before SETUP_WITH and BEFORE_ASYNC_WITH. (GH-8159) (GH-8198)

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