]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
closes bpo-38156: Always handle interrupts in PyOS_StdioReadline. (GH-21569)
authorBenjamin Peterson <benjamin@python.org>
Wed, 29 Jul 2020 00:57:12 +0000 (17:57 -0700)
committerGitHub <noreply@github.com>
Wed, 29 Jul 2020 00:57:12 +0000 (19:57 -0500)
commita74eea238f5baba15797e2e8b570d153bc8690a7
tree3f9c8be82e79dc909565cbdd39a05e2a0e691675
parentf6a16e8a82d5673bc1897e0f251deb5173095689
closes bpo-38156: Always handle interrupts in PyOS_StdioReadline. (GH-21569)

This consolidates the handling of my_fgets return values, so that interrupts are always handled, even if they come after EOF.

 I believe PyOS_StdioReadline is still buggy in that I/O errors will not result in a proper Python exception being set. However, that is a separate issue.
Misc/NEWS.d/next/Core and Builtins/2020-07-20-17-01-17.bpo-38156.ptcdRy.rst [new file with mode: 0644]
Parser/myreadline.c