diff Python/pythonrun.c @ 17228:32fb6643adf1 legacy-trunk

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.
author Jeremy Hylton <jeremy@alum.mit.edu>
date Mon, 26 Mar 2001 19:53:38 +0000
parents 215dc725db84
children 097dd953e119 9dda0c11e006
line wrap: on
line diff
--- a/Python/pythonrun.c	Mon Mar 26 17:41:35 2001 +0000
+++ b/Python/pythonrun.c	Mon Mar 26 19:53:38 2001 +0000
@@ -1098,7 +1098,7 @@
 	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;
 }