diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-03-26 19:53:38 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-03-26 19:53:38 (GMT) |
commit | 673a4fda5133554b48cbe06edb416386ca301501 (patch) | |
tree | f51715f60cc7ec0732b90281a2a04d8bdaf70c9d /Python | |
parent | b4ce43011e5d3ad43a421f1e2d366f0ce8cd36dc (diff) | |
download | cpython-673a4fda5133554b48cbe06edb416386ca301501.zip cpython-673a4fda5133554b48cbe06edb416386ca301501.tar.gz cpython-673a4fda5133554b48cbe06edb416386ca301501.tar.bz2 |
Bug fix: compile() called from a nested-scopes-enable Python was not
using nested scopes to compile its argument. Pass compiler flags
through to underlying compile call.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pythonrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 9bb20de..d7b8872 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1098,7 +1098,7 @@ Py_CompileStringFlags(char *str, char *filename, int start, n = PyParser_SimpleParseString(str, start); if (n == NULL) return NULL; - co = PyNode_Compile(n, filename); + co = PyNode_CompileFlags(n, filename, flags); PyNode_Free(n); return (PyObject *)co; } |