diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 52a98bc..e238056 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -5210,8 +5210,7 @@ supercheck(PyTypeObject *type, PyObject *obj) Py_DECREF(class_attr); } - fail: - PyErr_SetString(PyExc_TypeError, + PyErr_SetString(PyExc_TypeError, "super(type, obj): " "obj must be an instance or subtype of type"); return NULL; |