summaryrefslogtreecommitdiffstats
path: root/Modules/zipimport.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-08-26 06:42:30 (GMT)
committerGeorg Brandl <georg@python.org>2005-08-26 06:42:30 (GMT)
commit02c42871cf73365dc5b6915cac2b017b2b90c81f (patch)
treea85d3fb2fc3682c2a149d213f5cf9a378868abea /Modules/zipimport.c
parentbd77da6dab9d41ef246febf54c7928ce4496dd49 (diff)
downloadcpython-02c42871cf73365dc5b6915cac2b017b2b90c81f.zip
cpython-02c42871cf73365dc5b6915cac2b017b2b90c81f.tar.gz
cpython-02c42871cf73365dc5b6915cac2b017b2b90c81f.tar.bz2
Disallow keyword arguments for type constructors that don't use them.
(fixes bug #1119418)
Diffstat (limited to 'Modules/zipimport.c')
-rw-r--r--Modules/zipimport.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index 9630dea..e445300 100644
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -65,6 +65,9 @@ zipimporter_init(ZipImporter *self, PyObject *args, PyObject *kwds)
char *path, *p, *prefix, buf[MAXPATHLEN+2];
int len;
+ if (!_PyArg_NoKeywords("zipimporter()", kwds))
+ return -1;
+
if (!PyArg_ParseTuple(args, "s:zipimporter",
&path))
return -1;