summaryrefslogtreecommitdiffstats
path: root/Objects/classobject.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-02-26 18:56:37 (GMT)
committerFred Drake <fdrake@acm.org>2001-02-26 18:56:37 (GMT)
commitb60654bc15597f4b08fb6d97774d655ae5176ca4 (patch)
treec0ced5ef94b82d6a48e24c80de8f2b7c3cffde7e /Objects/classobject.c
parent4f9b13bac8335d4614499673a3349b2c97401f12 (diff)
downloadcpython-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.c3
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