Commit 673a4fda 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 b4ce4301
......@@ -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;
}
......
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