Commit 72288d4f authored by Benjamin Peterson's avatar Benjamin Peterson

code style

parent 5e703cf3
......@@ -2500,12 +2500,10 @@ recursive_isinstance(PyObject *inst, PyObject *cls)
if (retval == 0) {
PyObject *c = PyObject_GetAttr(inst, __class__);
if (c == NULL) {
if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
if (PyErr_ExceptionMatches(PyExc_AttributeError))
PyErr_Clear();
}
else {
else
retval = -1;
}
}
else {
if (c != (PyObject *)(inst->ob_type) &&
......@@ -2523,12 +2521,10 @@ recursive_isinstance(PyObject *inst, PyObject *cls)
return -1;
icls = PyObject_GetAttr(inst, __class__);
if (icls == NULL) {
if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
if (PyErr_ExceptionMatches(PyExc_AttributeError))
PyErr_Clear();
}
else {
else
retval = -1;
}
}
else {
retval = abstract_issubclass(icls, cls);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment