Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 72288d4

Browse files
committed
code style
1 parent 5e703cf commit 72288d4

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

Objects/abstract.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)