diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 209ec32..818572f 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -5542,7 +5542,8 @@ super_getattro(PyObject *self, PyObject *name) this is instance-mode super (See SF ID #743627) */ - (su->obj==su->obj_type + (su->obj == (PyObject *) + su->obj_type ? (PyObject *)NULL : su->obj), (PyObject *)starttype); |