]> granicus.if.org Git - python/commitdiff
getset_init(): the function name in the PyArg_ParseTuple() format
authorGuido van Rossum <guido@python.org>
Fri, 24 Aug 2001 18:49:10 +0000 (18:49 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 24 Aug 2001 18:49:10 +0000 (18:49 +0000)
should just be "getset", not "getset.__init__".

Objects/descrobject.c

index 44b20e275e750cb06b5cc8fc75d7d42148507fa5..4971b4c07c0db772702db655d02dc1fe7c780e28 100644 (file)
@@ -929,7 +929,7 @@ getset_init(PyObject *self, PyObject *args, PyObject *kwds)
        PyObject *get = NULL, *set = NULL, *del = NULL;
        getsetobject *gs = (getsetobject *)self;
 
-       if (!PyArg_ParseTuple(args, "|OOO:getset.__init__", &get, &set, &del))
+       if (!PyArg_ParseTuple(args, "|OOO:getset", &get, &set, &del))
                return -1;
        if (get == Py_None)
                get = NULL;