summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-03-26 19:53:38 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-03-26 19:53:38 (GMT)
commit673a4fda5133554b48cbe06edb416386ca301501 (patch)
treef51715f60cc7ec0732b90281a2a04d8bdaf70c9d
parentb4ce43011e5d3ad43a421f1e2d366f0ce8cd36dc (diff)
downloadcpython-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.
-rw-r--r--Python/pythonrun.c2
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;
}