]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backported fix of revision 2.217.
authorArmin Rigo <arigo@tunes.org>
Mon, 22 Mar 2004 20:39:42 +0000 (20:39 +0000)
committerArmin Rigo <arigo@tunes.org>
Mon, 22 Mar 2004 20:39:42 +0000 (20:39 +0000)
Objects/abstract.c

index 13185d8fd7f64b17fe4f9c9f78eaaff88510c001..4d83a6d1eb88912e463ffe17e32cc4c72bd6bae9 100644 (file)
@@ -2078,7 +2078,7 @@ recursive_isinstance(PyObject *inst, PyObject *cls, int recursion_depth)
                 if (!recursion_depth) {
                     PyErr_SetString(PyExc_RuntimeError,
                                     "Recursion depth exceeded");
-                    return NULL;
+                    return -1;
                 }
 
                n = PyTuple_GET_SIZE(cls);
@@ -2138,7 +2138,7 @@ recursive_issubclass(PyObject *derived, PyObject *cls, int recursion_depth)
                         if (!recursion_depth) {
                             PyErr_SetString(PyExc_RuntimeError,
                                             "Recursion depth exceeded");
-                            return NULL;
+                            return -1;
                         }
                         
                        for (i = 0; i < n; ++i) {