diff options
author | Guido van Rossum <guido@python.org> | 1998-09-03 22:25:05 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-09-03 22:25:05 (GMT) |
commit | 746340d989f02af9c8d75545c7068b5db9894826 (patch) | |
tree | cf4a37868052604d6a426ab01e50da0142858651 /Python/bltinmodule.c | |
parent | b85c8479eb0dd25968eceabf599c0c4616a3c59a (diff) | |
download | cpython-746340d989f02af9c8d75545c7068b5db9894826.zip cpython-746340d989f02af9c8d75545c7068b5db9894826.tar.gz cpython-746340d989f02af9c8d75545c7068b5db9894826.tar.bz2 |
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).
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index f4575dc..86e455f 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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); |