diff options
author | Guido van Rossum <guido@python.org> | 1998-08-27 19:14:49 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-08-27 19:14:49 (GMT) |
commit | 53195c1a83e5721e4261c341cd5e13e97e4d0eb6 (patch) | |
tree | 3027ec8981bfd42e2536bb199952c02a7b7e5bc0 /Python | |
parent | b9f48608f6c0338a85c7162ec07fbad5f95d1f8a (diff) | |
download | cpython-53195c1a83e5721e4261c341cd5e13e97e4d0eb6.zip cpython-53195c1a83e5721e4261c341cd5e13e97e4d0eb6.tar.gz cpython-53195c1a83e5721e4261c341cd5e13e97e4d0eb6.tar.bz2 |
Don't release the interpreter lock around PyParser_ParseFile().
It is needed so that tokenizer.c can use PySys_WriteStderr().
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pythonrun.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index fa54473..2be073b 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; |