[Python-checkins] CVS: python/dist/src/Python ceval.c,2.170,2.171

Barry A. Warsaw python-dev@python.org
Wed, 29 Mar 2000 13:36:52 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Python
In directory anthem:/home/bwarsaw/projects/python/Python

Modified Files:
	ceval.c 
Log Message:
eval_code2(): Oops, in the last checkin, we shouldn't check for
PyErr_Occurred(), just set x=NULL and break.  Oh, and make Jeremy stop
nagging me about the "special" indentation for this block.


Index: ceval.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Python/ceval.c,v
retrieving revision 2.170
retrieving revision 2.171
diff -C2 -r2.170 -r2.171
*** ceval.c	2000/03/29 18:30:03	2.170
--- ceval.c	2000/03/29 18:36:49	2.171
***************
*** 1638,1647 ****
  			    nstar = PySequence_Length(stararg);
  			    if (nstar < 0) {
! 				    if (!PyErr_Occurred)
! 					    PyErr_SetString(
! 						    PyExc_TypeError,
! 						    "len() of unsized object");
! 				    x = NULL;
! 				    break;
  			    }
  			}
--- 1638,1643 ----
  			    nstar = PySequence_Length(stararg);
  			    if (nstar < 0) {
! 				x = NULL;
! 				break;
  			    }
  			}