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.
This commit is contained in:
Jeremy Hylton 2001-03-26 19:53:38 +00:00
parent b4ce43011e
commit 673a4fda51
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}