summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-08-24 18:49:10 (GMT)
committerGuido van Rossum <guido@python.org>2001-08-24 18:49:10 (GMT)
commit239abf7e23f7546738c1e5be6d6b612c01e91720 (patch)
tree26f03cf28ae8cf9434bc6be4f971769fbf77c82e
parenta15dece51975ddc94b488a64c1326d3e39566c59 (diff)
downloadcpython-239abf7e23f7546738c1e5be6d6b612c01e91720.zip
cpython-239abf7e23f7546738c1e5be6d6b612c01e91720.tar.gz
cpython-239abf7e23f7546738c1e5be6d6b612c01e91720.tar.bz2
getset_init(): the function name in the PyArg_ParseTuple() format
should just be "getset", not "getset.__init__".
-rw-r--r--Objects/descrobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c
index 44b20e2..4971b4c 100644
--- a/Objects/descrobject.c
+++ b/Objects/descrobject.c
@@ -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;