]> granicus.if.org Git - python/commitdiff
Fix the names of the classmethod and staticmethod constructors as passed to
authorFred Drake <fdrake@acm.org>
Wed, 3 Apr 2002 21:42:45 +0000 (21:42 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 3 Apr 2002 21:42:45 +0000 (21:42 +0000)
PyArg_ParseTuple() as part of the format string.

Objects/funcobject.c

index 426b8f490a44e3ac50292b539762fac6e473e6a8..178bd7709ef49adb725713f318649ceec006bf50 100644 (file)
@@ -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;