From: Jeremy Hylton Date: Mon, 26 Mar 2001 19:53:38 +0000 (+0000) Subject: Bug fix: compile() called from a nested-scopes-enable Python was not X-Git-Tag: v2.1c1~231 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=673a4fda5133554b48cbe06edb416386ca301501;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 9bb20de8bdd0..d7b8872b57c2 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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; }