diff options
Diffstat (limited to 'Objects/typeobject.c')
| -rw-r--r-- | Objects/typeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 0b7f00d259..193b0cc1bc 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -2435,7 +2435,7 @@ add_methods(PyTypeObject *type, PyMethodDef *meth) "method cannot be both class and static"); return -1; } - descr = create_specialmethod(meth, PyClassMethod_New); + descr = PyDescr_NewClassMethod(type, meth); } else if (meth->ml_flags & METH_STATIC) { descr = create_specialmethod(meth, PyStaticMethod_New); |
