Commit 75f696a3 authored by Fred Drake's avatar Fred Drake

Fix the names of the classmethod and staticmethod constructors as passed to

PyArg_ParseTuple() as part of the format string.
parent 8ceb8a51
...@@ -486,7 +486,7 @@ cm_init(PyObject *self, PyObject *args, PyObject *kwds) ...@@ -486,7 +486,7 @@ cm_init(PyObject *self, PyObject *args, PyObject *kwds)
classmethod *cm = (classmethod *)self; classmethod *cm = (classmethod *)self;
PyObject *callable; PyObject *callable;
if (!PyArg_ParseTuple(args, "O:callable", &callable)) if (!PyArg_ParseTuple(args, "O:classmethod", &callable))
return -1; return -1;
Py_INCREF(callable); Py_INCREF(callable);
cm->cm_callable = callable; cm->cm_callable = callable;
...@@ -618,7 +618,7 @@ sm_init(PyObject *self, PyObject *args, PyObject *kwds) ...@@ -618,7 +618,7 @@ sm_init(PyObject *self, PyObject *args, PyObject *kwds)
staticmethod *sm = (staticmethod *)self; staticmethod *sm = (staticmethod *)self;
PyObject *callable; PyObject *callable;
if (!PyArg_ParseTuple(args, "O:callable", &callable)) if (!PyArg_ParseTuple(args, "O:staticmethod", &callable))
return -1; return -1;
Py_INCREF(callable); Py_INCREF(callable);
sm->sm_callable = callable; sm->sm_callable = callable;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment