diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-06-23 17:14:56 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-06-23 17:14:56 (GMT) |
commit | d22162bac7e42ccf90571ee2607c9c42ed2df3fe (patch) | |
tree | ff64d8b51265c3195ccfeceba8ca4e8db028ad11 /Objects/classobject.c | |
parent | 99a8f90874c978147e6660896b93a5af27108b10 (diff) | |
download | cpython-d22162bac7e42ccf90571ee2607c9c42ed2df3fe.zip cpython-d22162bac7e42ccf90571ee2607c9c42ed2df3fe.tar.gz cpython-d22162bac7e42ccf90571ee2607c9c42ed2df3fe.tar.bz2 |
traverse functions should return 0 on success
Diffstat (limited to 'Objects/classobject.c')
-rw-r--r-- | Objects/classobject.c | 4 |
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 = { |