diff options
Diffstat (limited to 'Objects/object.c')
-rw-r--r-- | Objects/object.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Objects/object.c b/Objects/object.c index 04f75e9..366d777 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -100,10 +100,6 @@ PyObject_Init(PyObject *op, PyTypeObject *tp) /* Any changes should be reflected in PyObject_INIT (objimpl.h) */ op->ob_type = tp; _Py_NewReference(op); - if (PyType_SUPPORTS_WEAKREFS(tp)) { - PyObject **weaklist = PyObject_GET_WEAKREFS_LISTPTR(op); - *weaklist = NULL; - } return op; } |