summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2023-10-27 05:24:56 (GMT)
committerGitHub <noreply@github.com>2023-10-27 05:24:56 (GMT)
commit7f9a99e8549b792662f2cd28bf38a4d4625bd402 (patch)
tree3e31df6a620f6a41c9a3547187ee794bbe343823 /Objects
parentee2d22f06d8a4ca13b2dba5e8a7a639a3997cc69 (diff)
downloadcpython-7f9a99e8549b792662f2cd28bf38a4d4625bd402.zip
cpython-7f9a99e8549b792662f2cd28bf38a4d4625bd402.tar.gz
cpython-7f9a99e8549b792662f2cd28bf38a4d4625bd402.tar.bz2
gh-89519: Remove classmethod descriptor chaining, deprecated since 3.11 (gh-110163)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/funcobject.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index 8665c77..56c5af6 100644
--- a/Objects/funcobject.c
+++ b/Objects/funcobject.c
@@ -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);
}