diff options
author | Richard Oudkerk <shibturn@gmail.com> | 2013-04-03 13:44:50 +0100 |
---|---|---|
committer | Richard Oudkerk <shibturn@gmail.com> | 2013-04-03 13:44:50 +0100 |
commit | bb79cc98a5e6bdd4e5983ca2a1589314828285df (patch) | |
tree | d1399c9f786de52f4a35d2c68741257212d738cc /Python | |
parent | 0ea6483da34b7040f3f12e938dfe95e4ebb74afc (diff) | |
download | cpython-bb79cc98a5e6bdd4e5983ca2a1589314828285df.tar.gz |
Issue #17619: Make input() check for Ctrl-C correctly on Windows.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bltinmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index bf90aba3a2..75afa860f1 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; |