mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #17619: Make input() check for Ctrl-C correctly on Windows.
This commit is contained in:
parent
d8a46969f7
commit
614c578dec
2 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,8 @@ What's New in Python 3.3.2?
|
|||
Core and Builtins
|
||||
-----------------
|
||||
|
||||
- Issue #17619: Make input() check for Ctrl-C correctly on Windows.
|
||||
|
||||
- Issue #17610: Don't rely on non-standard behavior of the C qsort() function.
|
||||
|
||||
- Issue #17357: Add missing verbosity output when using -v/-vv.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue