mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user