Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 83080:241cd716bf5f 3.3
Issue #17619: Make input() check for Ctrl-C correctly on Windows.
| author | Richard Oudkerk <shibturn@gmail.com> |
|---|---|
| date | Wed, 03 Apr 2013 13:44:50 +0100 |
| parents | 34cfe145b286 |
| children | aaaf36026511 b79025925eab |
line wrap: on
line diff
--- a/Python/bltinmodule.c Wed Apr 03 06:58:34 2013 -0400 +++ b/Python/bltinmodule.c Wed Apr 03 13:44:50 2013 +0100 @@ -1733,6 +1733,7 @@ } s = PyOS_Readline(stdin, stdout, prompt); if (s == NULL) { + PyErr_CheckSignals(); if (!PyErr_Occurred()) PyErr_SetNone(PyExc_KeyboardInterrupt); goto _readline_errors;
