Commit 746340d9 authored by Guido van Rossum's avatar Guido van Rossum

Should no longer surround PyOS_Readline() call with

Py_{BEGIN,END}_ALLOW_THREADS macros.  Also get rid of the declaration
for it (it's now in pythonrun.h).
parent b85c8479
......@@ -1477,8 +1477,6 @@ generates the numbers in the range on demand. This is slightly slower\n\
than range() but more memory efficient.";
extern char *PyOS_Readline Py_PROTO((char *));
static PyObject *
builtin_raw_input(self, args)
PyObject *self;
......@@ -1508,9 +1506,7 @@ 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