Skip to content

Commit b1dc75b

Browse files
Remove heap type flags
1 parent 54553a9 commit b1dc75b

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

Objects/typeobject.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6573,13 +6573,7 @@ object_set_class(PyObject *self, PyObject *value, void *closure)
65736573
return -1;
65746574
}
65756575
}
6576-
if (newto->tp_flags & Py_TPFLAGS_HEAPTYPE) {
6577-
Py_INCREF(newto);
6578-
}
65796576
Py_SET_TYPE(self, newto);
6580-
if (oldto->tp_flags & Py_TPFLAGS_HEAPTYPE)
6581-
Py_DECREF(oldto);
6582-
65836577
RARE_EVENT_INC(set_class);
65846578
return 0;
65856579
}

0 commit comments

Comments
 (0)