mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Disallow keyword arguments for type constructors that don't use them.
(fixes bug #1119418)
This commit is contained in:
parent
bd77da6dab
commit
02c42871cf
13 changed files with 100 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue