diff Objects/unicodeobject.c @ 23561:c5e8f89fd358 legacy-trunk

Fix for bug [ 561796 ] string.find causes lazy error
author Marc-André Lemburg <mal@egenix.com>
date Wed, 29 May 2002 11:33:13 +0000
parents 220b98f06415
children eaca627f2a54
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Wed May 29 10:32:24 2002 +0000
+++ b/Objects/unicodeobject.c	Wed May 29 11:33:13 2002 +0000
@@ -2887,11 +2887,11 @@
     
     str = PyUnicode_FromObject(str);
     if (str == NULL)
-	return -1;
+	return -2;
     substr = PyUnicode_FromObject(substr);
     if (substr == NULL) {
 	Py_DECREF(substr);
-	return -1;
+	return -2;
     }
     
     result = findstring((PyUnicodeObject *)str,