From cd874edaaa9103ac0f28e588e2adfa21b1626d19 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Wed, 3 Apr 2002 21:42:45 +0000 Subject: Fix the names of the classmethod and staticmethod constructors as passed to PyArg_ParseTuple() as part of the format string. --- Objects/funcobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objects/funcobject.c b/Objects/funcobject.c index 426b8f4..178bd77 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; -- cgit v0.12