summaryrefslogtreecommitdiffstats
path: root/Objects/typeobject.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-09-30 08:43:30 (GMT)
committerGeorg Brandl <georg@python.org>2006-09-30 08:43:30 (GMT)
commit5d59c0983431b0b7d3929dd2851b00e20e1d8c15 (patch)
tree0ee7023af580fab706ed5f0c7bfeb14f99af0230 /Objects/typeobject.c
parent8c6674511b7fd0cafcdf00011eb91c3216be094f (diff)
downloadcpython-5d59c0983431b0b7d3929dd2851b00e20e1d8c15.zip
cpython-5d59c0983431b0b7d3929dd2851b00e20e1d8c15.tar.gz
cpython-5d59c0983431b0b7d3929dd2851b00e20e1d8c15.tar.bz2
Patch #1567691: super() and new.instancemethod() now don't accept
keyword arguments any more (previously they accepted them, but didn't use them).
Diffstat (limited to 'Objects/typeobject.c')
-rw-r--r--Objects/typeobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 6edd455..4d99f7d 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -5762,6 +5762,8 @@ super_init(PyObject *self, PyObject *args, PyObject *kwds)
PyObject *obj = NULL;
PyTypeObject *obj_type = NULL;
+ if (!_PyArg_NoKeywords("super", kwds))
+ return -1;
if (!PyArg_ParseTuple(args, "O!|O:super", &PyType_Type, &type, &obj))
return -1;
if (obj == Py_None)