[Python-checkins] python/dist/src/Objects unicodeobject.c,2.149,2.150

lemburg@users.sourceforge.net lemburg@users.sourceforge.net
2002年5月29日 04:33:15 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv2190/Objects
Modified Files:
	unicodeobject.c 
Log Message:
Fix for bug [ 561796 ] string.find causes lazy error
Index: unicodeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/unicodeobject.c,v
retrieving revision 2.149
retrieving revision 2.150
diff -C2 -d -r2.149 -r2.150
*** unicodeobject.c	24 May 2002 19:01:59 -0000	2.149
--- unicodeobject.c	29 May 2002 11:33:13 -0000	2.150
***************
*** 2888,2896 ****
 str = PyUnicode_FromObject(str);
 if (str == NULL)
! 	return -1;
 substr = PyUnicode_FromObject(substr);
 if (substr == NULL) {
 	Py_DECREF(substr);
! 	return -1;
 }
 
--- 2888,2896 ----
 str = PyUnicode_FromObject(str);
 if (str == NULL)
! 	return -2;
 substr = PyUnicode_FromObject(substr);
 if (substr == NULL) {
 	Py_DECREF(substr);
! 	return -2;
 }
 

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