summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-08-27 19:14:49 +0000
committerGuido van Rossum <guido@python.org>1998-08-27 19:14:49 +0000
commitc16b792143cd650e4a43abf7587efe4d6baf0838 (patch)
tree0bb5de67b5cc47ce164ab5f3daacc7b37fd39999 /Python/pythonrun.c
parent10c774b5860bb2ab5f48e00f93040cfc1a5c35fb (diff)
downloadcpython-c16b792143cd650e4a43abf7587efe4d6baf0838.tar.gz
Don't release the interpreter lock around PyParser_ParseFile().
It is needed so that tokenizer.c can use PySys_WriteStderr().
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index fa544736c5..2be073bda0 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -500,10 +500,8 @@ PyRun_InteractiveOne(fp, filename)
else if (PyString_Check(w))
ps2 = PyString_AsString(w);
}
- Py_BEGIN_ALLOW_THREADS
n = PyParser_ParseFile(fp, filename, &_PyParser_Grammar,
Py_single_input, ps1, ps2, &err);
- Py_END_ALLOW_THREADS
Py_XDECREF(v);
Py_XDECREF(w);
if (n == NULL) {
@@ -942,10 +940,8 @@ PyParser_SimpleParseFile(fp, filename, start)
{
node *n;
perrdetail err;
- Py_BEGIN_ALLOW_THREADS
n = PyParser_ParseFile(fp, filename, &_PyParser_Grammar, start,
(char *)0, (char *)0, &err);
- Py_END_ALLOW_THREADS
if (n == NULL)
err_input(&err);
return n;