File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2500,12 +2500,10 @@ recursive_isinstance(PyObject *inst, PyObject *cls)
25002500 if (retval == 0 ) {
25012501 PyObject * c = PyObject_GetAttr (inst , __class__ );
25022502 if (c == NULL ) {
2503- if (PyErr_ExceptionMatches (PyExc_AttributeError )) {
2503+ if (PyErr_ExceptionMatches (PyExc_AttributeError ))
25042504 PyErr_Clear ();
2505- }
2506- else {
2505+ else
25072506 retval = -1 ;
2508- }
25092507 }
25102508 else {
25112509 if (c != (PyObject * )(inst -> ob_type ) &&
@@ -2523,12 +2521,10 @@ recursive_isinstance(PyObject *inst, PyObject *cls)
25232521 return -1 ;
25242522 icls = PyObject_GetAttr (inst , __class__ );
25252523 if (icls == NULL ) {
2526- if (PyErr_ExceptionMatches (PyExc_AttributeError )) {
2524+ if (PyErr_ExceptionMatches (PyExc_AttributeError ))
25272525 PyErr_Clear ();
2528- }
2529- else {
2526+ else
25302527 retval = -1 ;
2531- }
25322528 }
25332529 else {
25342530 retval = abstract_issubclass (icls , cls );
You can’t perform that action at this time.
0 commit comments