mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Release interpreter lock around readline call in [raw_]input().
This commit is contained in:
@@ -1349,7 +1349,9 @@ builtin_raw_input(self, args)
|
||||
po = NULL;
|
||||
prompt = "";
|
||||
}
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
s = PyOS_Readline(prompt);
|
||||
Py_END_ALLOW_THREADS
|
||||
Py_XDECREF(po);
|
||||
if (s == NULL) {
|
||||
PyErr_SetNone(PyExc_KeyboardInterrupt);
|
||||
|
||||
Reference in New Issue
Block a user