diff options
author | Fred Drake <fdrake@acm.org> | 2001-02-26 18:56:37 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-02-26 18:56:37 (GMT) |
commit | b60654bc15597f4b08fb6d97774d655ae5176ca4 (patch) | |
tree | c0ced5ef94b82d6a48e24c80de8f2b7c3cffde7e /Modules | |
parent | 4f9b13bac8335d4614499673a3349b2c97401f12 (diff) | |
download | cpython-b60654bc15597f4b08fb6d97774d655ae5176ca4.zip cpython-b60654bc15597f4b08fb6d97774d655ae5176ca4.tar.gz cpython-b60654bc15597f4b08fb6d97774d655ae5176ca4.tar.bz2 |
The return value from PyObject_ClearWeakRefs() is no longer meaningful,
so make it void.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_weakref.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_weakref.c b/Modules/_weakref.c index a856901..502d568 100644 --- a/Modules/_weakref.c +++ b/Modules/_weakref.c @@ -692,7 +692,7 @@ weakref_proxy(PyObject *self, PyObject *args) * until one resurrects the object, at which point it stops invalidating * weak references and returns false. */ -static int +static cleanup_helper(PyObject *object) { PyWeakReference **list; @@ -702,7 +702,7 @@ cleanup_helper(PyObject *object) || object->ob_refcnt != 0) { PyErr_BadInternalCall(); /* not sure what we should return here */ - return 1; + return; } list = GET_WEAKREFS_LISTPTR(object); while (*list != NULL) { @@ -722,7 +722,7 @@ cleanup_helper(PyObject *object) Py_DECREF(callback); } } - return (object->ob_refcnt > 0 ? 0 : 1); + return; } |