mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Merge
This commit is contained in:
commit
eea1f5c2e4
2 changed files with 3 additions and 0 deletions
|
@ -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