summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorRichard Oudkerk <shibturn@gmail.com>2013-04-03 12:44:50 (GMT)
committerRichard Oudkerk <shibturn@gmail.com>2013-04-03 12:44:50 (GMT)
commit614c578dec856dc8a255b27a63559c6912ddc2e8 (patch)
tree0cb9ed9368ebf93f6c423e828341537c1eb5aa21 /Python
parentd8a46969f7034d9a56e70d24fc77e15154135199 (diff)
downloadcpython-614c578dec856dc8a255b27a63559c6912ddc2e8.zip
cpython-614c578dec856dc8a255b27a63559c6912ddc2e8.tar.gz
cpython-614c578dec856dc8a255b27a63559c6912ddc2e8.tar.bz2
Issue #17619: Make input() check for Ctrl-C correctly on Windows.
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index bf90aba..75afa86 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -1733,6 +1733,7 @@ builtin_input(PyObject *self, PyObject *args)
}
s = PyOS_Readline(stdin, stdout, prompt);
if (s == NULL) {
+ PyErr_CheckSignals();
if (!PyErr_Occurred())
PyErr_SetNone(PyExc_KeyboardInterrupt);
goto _readline_errors;