diff options
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 0ac4941..e24453d 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -2887,11 +2887,11 @@ int PyUnicode_Find(PyObject *str, 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, |