diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-03-26 19:53:38 +0000 |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-03-26 19:53:38 +0000 |
commit | 27e1633a251cf46a99ed589954713a35851cda49 (patch) | |
tree | e77c2c625de89e5a8890097da097aa76806c1f9b /Python/pythonrun.c | |
parent | 22291c45a733011a19a49b7bbb50a9aaebc09752 (diff) | |
download | cpython-27e1633a251cf46a99ed589954713a35851cda49.tar.gz |
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/pythonrun.c')
-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 9bb20de8bd..d7b8872b57 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; } |