From 02c42871cf73365dc5b6915cac2b017b2b90c81f Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 26 Aug 2005 06:42:30 +0000 Subject: Disallow keyword arguments for type constructors that don't use them. (fixes bug #1119418) --- Modules/zipimport.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Modules/zipimport.c') diff --git a/Modules/zipimport.c b/Modules/zipimport.c index 9630dea264..e445300cbf 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; -- cgit v1.2.1