mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
gh-89519: Remove classmethod descriptor chaining, deprecated since 3.11 (gh-110163)
This commit is contained in:
parent
ee2d22f06d
commit
7f9a99e854
8 changed files with 25 additions and 193 deletions
|
@ -1110,10 +1110,6 @@ cm_descr_get(PyObject *self, PyObject *obj, PyObject *type)
|
|||
}
|
||||
if (type == NULL)
|
||||
type = (PyObject *)(Py_TYPE(obj));
|
||||
if (Py_TYPE(cm->cm_callable)->tp_descr_get != NULL) {
|
||||
return Py_TYPE(cm->cm_callable)->tp_descr_get(cm->cm_callable, type,
|
||||
type);
|
||||
}
|
||||
return PyMethod_New(cm->cm_callable, type);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue