From d22162bac7e42ccf90571ee2607c9c42ed2df3fe Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Fri, 23 Jun 2000 17:14:56 +0000 Subject: traverse functions should return 0 on success --- Objects/classobject.c | 4 ++-- 1 file 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 = { -- cgit v0.12