]> granicus.if.org Git - python/commitdiff
Should no longer surround PyOS_Readline() call with
authorGuido van Rossum <guido@python.org>
Thu, 3 Sep 1998 22:25:05 +0000 (22:25 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 3 Sep 1998 22:25:05 +0000 (22:25 +0000)
Py_{BEGIN,END}_ALLOW_THREADS macros.  Also get rid of the declaration
for it (it's now in pythonrun.h).

Python/bltinmodule.c

index f4575dc4e6bd329d66997a76c4ef0b0da42beebb..86e455f81abe37d0ce06fe7f3d4c089e81a0957a 100644 (file)
@@ -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);