Commit ee81af89 authored by Guido van Rossum's avatar Guido van Rossum

Release interpreter lock around readline call in [raw_]input().

parent 5edcf34f
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment