[Python-checkins] CVS: python/dist/src/Python pythonrun.c,2.137,2.138
Guido van Rossum
gvanrossum@users.sourceforge.net
2001年7月16日 09:51:35 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv7726
Modified Files:
pythonrun.c
Log Message:
PyRun_StringFlags(): forgot to pass the flags on to
PyParser_SimpleParseString(). Now calls
PyParser_SimpleParseStringFlags() with the correct flag.
Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.137
retrieving revision 2.138
diff -C2 -r2.137 -r2.138
*** pythonrun.c 2001年07月16日 05:37:24 2.137
--- pythonrun.c 2001年07月16日 16:51:33 2.138
***************
*** 1006,1010 ****
PyCompilerFlags *flags)
{
! return run_err_node(PyParser_SimpleParseString(str, start),
"<string>", globals, locals, flags);
}
--- 1006,1013 ----
PyCompilerFlags *flags)
{
! return run_err_node(PyParser_SimpleParseStringFlags(
! str, start,
! (flags && flags->cf_flags & PyCF_GENERATORS) ?
! PyPARSE_YIELD_IS_KEYWORD : 0),
"<string>", globals, locals, flags);
}