Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 9069:ebc8cb07703f legacy-trunk
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).
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 03 Sep 1998 22:25:05 +0000 |
| parents | 83c8adaa084f |
| children | 83660cda3e3f |
line wrap: on
line diff
--- a/Python/bltinmodule.c Wed Sep 02 21:53:16 1998 +0000 +++ b/Python/bltinmodule.c Thu Sep 03 22:25:05 1998 +0000 @@ -1477,8 +1477,6 @@ 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 @@ 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);
