summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/funcobject.c4
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;