mirror of
https://github.com/python/cpython.git
synced 2024-11-26 03:14:27 +08:00
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:
parent
b4ce43011e
commit
673a4fda51
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user