[Python-checkins] python/dist/src/Objects typeobject.c,2.234,2.235

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Sun, 08 Jun 2003 06:20:00 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv25639/Objects

Modified Files:
	typeobject.c 
Log Message:
Fix SF #749831, copy raises SystemError when getstate raises exception


Index: typeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/typeobject.c,v
retrieving revision 2.234
retrieving revision 2.235
diff -C2 -d -r2.234 -r2.235
*** typeobject.c	29 May 2003 14:29:23 -0000	2.234
--- typeobject.c	8 Jun 2003 13:19:57 -0000	2.235
***************
*** 2537,2540 ****
--- 2537,2542 ----
  		state = PyObject_CallObject(getstate, NULL);
  		Py_DECREF(getstate);
+ 		if (state == NULL)
+ 			goto end;
  	}
  	else {