diff options
| author | Richard Oudkerk <shibturn@gmail.com> | 2013-04-03 12:44:50 (GMT) |
|---|---|---|
| committer | Richard Oudkerk <shibturn@gmail.com> | 2013-04-03 12:44:50 (GMT) |
| commit | 614c578dec856dc8a255b27a63559c6912ddc2e8 (patch) | |
| tree | 0cb9ed9368ebf93f6c423e828341537c1eb5aa21 /Python | |
| parent | d8a46969f7034d9a56e70d24fc77e15154135199 (diff) | |
| download | cpython-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.c | 1 |
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; |
