Commit 7b237695 authored by Benjamin Peterson's avatar Benjamin Peterson

code style

parent ac815021
...@@ -2500,12 +2500,10 @@ recursive_isinstance(PyObject *inst, PyObject *cls) ...@@ -2500,12 +2500,10 @@ recursive_isinstance(PyObject *inst, PyObject *cls)
if (retval == 0) { if (retval == 0) {
PyObject *c = PyObject_GetAttr(inst, __class__); PyObject *c = PyObject_GetAttr(inst, __class__);
if (c == NULL) { if (c == NULL) {
if (PyErr_ExceptionMatches(PyExc_AttributeError)) { if (PyErr_ExceptionMatches(PyExc_AttributeError))
PyErr_Clear(); PyErr_Clear();
} else
else {
retval = -1; retval = -1;
}
} }
else { else {
if (c != (PyObject *)(inst->ob_type) && if (c != (PyObject *)(inst->ob_type) &&
...@@ -2523,12 +2521,10 @@ recursive_isinstance(PyObject *inst, PyObject *cls) ...@@ -2523,12 +2521,10 @@ recursive_isinstance(PyObject *inst, PyObject *cls)
return -1; return -1;
icls = PyObject_GetAttr(inst, __class__); icls = PyObject_GetAttr(inst, __class__);
if (icls == NULL) { if (icls == NULL) {
if (PyErr_ExceptionMatches(PyExc_AttributeError)) { if (PyErr_ExceptionMatches(PyExc_AttributeError))
PyErr_Clear(); PyErr_Clear();
} else
else {
retval = -1; retval = -1;
}
} }
else { else {
retval = abstract_issubclass(icls, cls); 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