[Python-checkins] CVS: python/dist/src/Python future.c,2.7,2.8 pythonrun.c,2.135,2.136

Tim Peters tim_one@users.sourceforge.net
2001年7月15日 20:11:50 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv3302/python/dist/src/Python
Modified Files:
	future.c pythonrun.c 
Log Message:
future.c: insert a cosmetic space.
pythonrun.c, run_pyc_file(): repair semantic error wrt CO_GENERATOR vs
CO_GENERATOR_ALLOWED.
Index: future.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/future.c,v
retrieving revision 2.7
retrieving revision 2.8
diff -C2 -r2.7 -r2.8
*** future.c	2001年07月16日 02:29:45	2.7
--- future.c	2001年07月16日 03:11:48	2.8
***************
*** 33,37 ****
 			ff->ff_nested_scopes = 1;
 		} else if (strcmp(feature, FUTURE_GENERATORS) == 0) {
! 			ff->ff_generators= 1;
 		} else if (strcmp(feature, "braces") == 0) {
 			PyErr_SetString(PyExc_SyntaxError,
--- 33,37 ----
 			ff->ff_nested_scopes = 1;
 		} else if (strcmp(feature, FUTURE_GENERATORS) == 0) {
! 			ff->ff_generators = 1;
 		} else if (strcmp(feature, "braces") == 0) {
 			PyErr_SetString(PyExc_SyntaxError,
Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.135
retrieving revision 2.136
diff -C2 -r2.135 -r2.136
*** pythonrun.c	2001年07月16日 02:29:45	2.135
--- pythonrun.c	2001年07月16日 03:11:48	2.136
***************
*** 1077,1081 ****
 		if (co->co_flags & CO_NESTED)
 			flags->cf_flags |= PyCF_NESTED_SCOPES;
! 		if (co->co_flags & CO_GENERATOR)
 			flags->cf_flags |= PyCF_GENERATORS;
 #if 0
--- 1077,1081 ----
 		if (co->co_flags & CO_NESTED)
 			flags->cf_flags |= PyCF_NESTED_SCOPES;
! 		if (co->co_flags & CO_GENERATOR_ALLOWED)
 			flags->cf_flags |= PyCF_GENERATORS;
 #if 0

AltStyle によって変換されたページ (->オリジナル) /