From b60654bc15597f4b08fb6d97774d655ae5176ca4 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Mon, 26 Feb 2001 18:56:37 +0000 Subject: The return value from PyObject_ClearWeakRefs() is no longer meaningful, so make it void. --- Modules/_weakref.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Modules/_weakref.c') diff --git a/Modules/_weakref.c b/Modules/_weakref.c index a856901af9..502d568bba 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; } -- cgit v1.2.1