mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
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).
This commit is contained in:
parent
b85c8479eb
commit
746340d989
1 changed files with 0 additions and 4 deletions
|
@ -1477,8 +1477,6 @@ generates the numbers in the range on demand. This is slightly slower\n\
|
||||||
than range() but more memory efficient.";
|
than range() but more memory efficient.";
|
||||||
|
|
||||||
|
|
||||||
extern char *PyOS_Readline Py_PROTO((char *));
|
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
builtin_raw_input(self, args)
|
builtin_raw_input(self, args)
|
||||||
PyObject *self;
|
PyObject *self;
|
||||||
|
@ -1508,9 +1506,7 @@ builtin_raw_input(self, args)
|
||||||
po = NULL;
|
po = NULL;
|
||||||
prompt = "";
|
prompt = "";
|
||||||
}
|
}
|
||||||
Py_BEGIN_ALLOW_THREADS
|
|
||||||
s = PyOS_Readline(prompt);
|
s = PyOS_Readline(prompt);
|
||||||
Py_END_ALLOW_THREADS
|
|
||||||
Py_XDECREF(po);
|
Py_XDECREF(po);
|
||||||
if (s == NULL) {
|
if (s == NULL) {
|
||||||
PyErr_SetNone(PyExc_KeyboardInterrupt);
|
PyErr_SetNone(PyExc_KeyboardInterrupt);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue