mirror of https://github.com/python/cpython
bpo-46417: Revert remove_subclass() change (GH-30750)
remove_subclass() doesn't clear the tp_subclasses dict if the dict becomes empty.
This commit is contained in:
parent
595225e86d
commit
fda8886498
|
@ -6553,10 +6553,6 @@ remove_subclass(PyTypeObject *base, PyTypeObject *type)
|
|||
PyErr_Clear();
|
||||
}
|
||||
Py_XDECREF(key);
|
||||
|
||||
if (PyDict_Size(dict) == 0) {
|
||||
Py_CLEAR(base->tp_subclasses);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue