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 /Objects/classobject.c | |
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 'Objects/classobject.c')
-rw-r--r-- | Objects/classobject.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c index 9cca19f..00cfdde 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -516,8 +516,7 @@ instance_dealloc(register PyInstanceObject *inst) extern long _Py_RefTotal; #endif - if (!PyObject_ClearWeakRefs((PyObject *) inst)) - return; + PyObject_ClearWeakRefs((PyObject *) inst); /* Temporarily resurrect the object. */ #ifdef Py_TRACE_REFS |