commit | 02c42871cf73365dc5b6915cac2b017b2b90c81f | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Fri Aug 26 06:42:30 2005 +0000 |
committer | Georg Brandl <georg@python.org> | Fri Aug 26 06:42:30 2005 +0000 |
tree | a85d3fb2fc3682c2a149d213f5cf9a378868abea | |
parent | bd77da6dab9d41ef246febf54c7928ce4496dd49 [diff] [blame] |
Disallow keyword arguments for type constructors that don't use them. (fixes bug #1119418)
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 @@ 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;