diff options
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r-- | Objects/abstract.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index de5652f..454e0da 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -2472,7 +2472,7 @@ object_recursive_isinstance(PyThreadState *tstate, PyObject *inst, PyObject *cls _Py_IDENTIFIER(__instancecheck__); /* Quick test for an exact match */ - if (Py_TYPE(inst) == (PyTypeObject *)cls) { + if (Py_IS_TYPE(inst, (PyTypeObject *)cls)) { return 1; } |