diff options
author | Fred Drake <fdrake@acm.org> | 2002-04-03 21:42:45 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-04-03 21:42:45 (GMT) |
commit | cd874edaaa9103ac0f28e588e2adfa21b1626d19 (patch) | |
tree | 4366d67017b2566f24978bb0034fedf12ab87b17 /Objects/funcobject.c | |
parent | a2bd8d3816e35d1d678ba5b47a3666ab6e01f605 (diff) | |
download | cpython-cd874edaaa9103ac0f28e588e2adfa21b1626d19.zip cpython-cd874edaaa9103ac0f28e588e2adfa21b1626d19.tar.gz cpython-cd874edaaa9103ac0f28e588e2adfa21b1626d19.tar.bz2 |
Fix the names of the classmethod and staticmethod constructors as passed to
PyArg_ParseTuple() as part of the format string.
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r-- | Objects/funcobject.c | 4 |
1 files 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; |