From 673a4fda5133554b48cbe06edb416386ca301501 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Mon, 26 Mar 2001 19:53:38 +0000 Subject: [PATCH] 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. --- Python/pythonrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 9bb20de8bdd..d7b8872b57c 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; }