summaryrefslogtreecommitdiffstats
path: root/Objects/abstract.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-02-10 16:05:43 (GMT)
committerGuido van Rossum <guido@python.org>2003-02-10 16:05:43 (GMT)
commitf6c9ba845730edc187cdcfcd84abb889adf8386f (patch)
treed3aa2a76ce05af48e35d605fb877aaf2bb1e5a20 /Objects/abstract.c
parent6a600aba2dcd5af9040f533209c75b809cf0979c (diff)
downloadcpython-f6c9ba845730edc187cdcfcd84abb889adf8386f.zip
cpython-f6c9ba845730edc187cdcfcd84abb889adf8386f.tar.gz
cpython-f6c9ba845730edc187cdcfcd84abb889adf8386f.tar.bz2
Fold long lines.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r--Objects/abstract.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 0ce04ef..abc7e70 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -1,6 +1,5 @@
/* Abstract Object Interface (many thanks to Jim Fulton) */
-
#include "Python.h"
#include <ctype.h>
#include "structmember.h" /* we need the offsetof() macro from there */
@@ -2093,16 +2092,20 @@ PyObject_IsSubclass(PyObject *derived, PyObject *cls)
int retval;
if (!PyClass_Check(derived) || !PyClass_Check(cls)) {
- if (!check_class(derived, "issubclass() arg 1 must be a class"))
+ if (!check_class(derived,
+ "issubclass() arg 1 must be a class"))
return -1;
if (PyTuple_Check(cls)) {
int i;
int n = PyTuple_GET_SIZE(cls);
for (i = 0; i < n; ++i) {
- retval = PyObject_IsSubclass(derived, PyTuple_GET_ITEM(cls, i));
- if (retval != 0) /* either found it, or got an error */
+ retval = PyObject_IsSubclass(
+ derived, PyTuple_GET_ITEM(cls, i));
+ if (retval != 0) {
+ /* either found it, or got an error */
return retval;
+ }
}
return 0;
}