summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-06-23 17:14:56 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-06-23 17:14:56 (GMT)
commitd22162bac7e42ccf90571ee2607c9c42ed2df3fe (patch)
treeff64d8b51265c3195ccfeceba8ca4e8db028ad11 /Objects
parent99a8f90874c978147e6660896b93a5af27108b10 (diff)
downloadcpython-d22162bac7e42ccf90571ee2607c9c42ed2df3fe.zip
cpython-d22162bac7e42ccf90571ee2607c9c42ed2df3fe.tar.gz
cpython-d22162bac7e42ccf90571ee2607c9c42ed2df3fe.tar.bz2
traverse functions should return 0 on success
Diffstat (limited to 'Objects')
-rw-r--r--Objects/classobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c
index 18908f3..114f2d9 100644
--- a/Objects/classobject.c
+++ b/Objects/classobject.c
@@ -904,7 +904,7 @@ instance_traverse(PyInstanceObject *o, visitproc visit, void *arg)
if (err)
return err;
}
- return 1;
+ return 0;
}
static PyObject *getitemstr, *setitemstr, *delitemstr, *lenstr;
@@ -1741,7 +1741,7 @@ instancemethod_traverse(PyMethodObject *im, visitproc visit, void *arg)
if (err)
return err;
}
- return 1;
+ return 0;
}
PyTypeObject PyMethod_Type = {