Mercurial > cpython-lru_cache-weakref
diff Objects/classobject.c @ 16768:d446e4ec9b7b legacy-trunk
The return value from PyObject_ClearWeakRefs() is no longer meaningful,
so make it void.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Mon, 26 Feb 2001 18:56:37 +0000 |
| parents | b6a52e438344 |
| children | 3b8a5bbfd2e5 |
line wrap: on
line diff
--- a/Objects/classobject.c Mon Feb 26 18:09:15 2001 +0000 +++ b/Objects/classobject.c Mon Feb 26 18:56:37 2001 +0000 @@ -516,8 +516,7 @@ extern long _Py_RefTotal; #endif - if (!PyObject_ClearWeakRefs((PyObject *) inst)) - return; + PyObject_ClearWeakRefs((PyObject *) inst); /* Temporarily resurrect the object. */ #ifdef Py_TRACE_REFS
