From: Fred Drake Date: Wed, 3 Apr 2002 21:42:45 +0000 (+0000) Subject: Fix the names of the classmethod and staticmethod constructors as passed to X-Git-Tag: v2.3c1~6156 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd874edaaa9103ac0f28e588e2adfa21b1626d19;p=python Fix the names of the classmethod and staticmethod constructors as passed to PyArg_ParseTuple() as part of the format string. --- diff --git a/Objects/funcobject.c b/Objects/funcobject.c index 426b8f490a..178bd7709e 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c @@ -486,7 +486,7 @@ cm_init(PyObject *self, PyObject *args, PyObject *kwds) classmethod *cm = (classmethod *)self; PyObject *callable; - if (!PyArg_ParseTuple(args, "O:callable", &callable)) + if (!PyArg_ParseTuple(args, "O:classmethod", &callable)) return -1; Py_INCREF(callable); cm->cm_callable = callable; @@ -618,7 +618,7 @@ sm_init(PyObject *self, PyObject *args, PyObject *kwds) staticmethod *sm = (staticmethod *)self; PyObject *callable; - if (!PyArg_ParseTuple(args, "O:callable", &callable)) + if (!PyArg_ParseTuple(args, "O:staticmethod", &callable)) return -1; Py_INCREF(callable); sm->sm_callable = callable;