Commit 27e1633a authored by Jeremy Hylton's avatar Jeremy Hylton

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.
parent 22291c45
...@@ -1098,7 +1098,7 @@ Py_CompileStringFlags(char *str, char *filename, int start, ...@@ -1098,7 +1098,7 @@ Py_CompileStringFlags(char *str, char *filename, int start,
n = PyParser_SimpleParseString(str, start); n = PyParser_SimpleParseString(str, start);
if (n == NULL) if (n == NULL)
return NULL; return NULL;
co = PyNode_Compile(n, filename); co = PyNode_CompileFlags(n, filename, flags);
PyNode_Free(n); PyNode_Free(n);
return (PyObject *)co; return (PyObject *)co;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment