[Python-checkins] CVS: python/dist/src/Python pythonrun.c,2.132,2.133

Jeremy Hylton jhylton@users.sourceforge.net
Mon, 26 Mar 2001 11:53:40 -0800


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv25664

Modified Files:
	pythonrun.c 
Log Message:
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. 


Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.132
retrieving revision 2.133
diff -C2 -r2.132 -r2.133
*** pythonrun.c	2001/03/23 17:54:43	2.132
--- pythonrun.c	2001/03/26 19:53:38	2.133
***************
*** 1099,1103 ****
  	if (n == NULL)
  		return NULL;
! 	co = PyNode_Compile(n, filename);
  	PyNode_Free(n);
  	return (PyObject *)co;
--- 1099,1103 ----
  	if (n == NULL)
  		return NULL;
! 	co = PyNode_CompileFlags(n, filename, flags);
  	PyNode_Free(n);
  	return (PyObject *)co;