diff options
| author | Georg Brandl <georg@python.org> | 2005-08-26 06:42:30 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2005-08-26 06:42:30 +0000 |
| commit | 02c42871cf73365dc5b6915cac2b017b2b90c81f (patch) | |
| tree | a85d3fb2fc3682c2a149d213f5cf9a378868abea /Modules/collectionsmodule.c | |
| parent | bd77da6dab9d41ef246febf54c7928ce4496dd49 (diff) | |
| download | cpython-git-02c42871cf73365dc5b6915cac2b017b2b90c81f.tar.gz | |
Disallow keyword arguments for type constructors that don't use them.
(fixes bug #1119418)
Diffstat (limited to 'Modules/collectionsmodule.c')
| -rw-r--r-- | Modules/collectionsmodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/collectionsmodule.c b/Modules/collectionsmodule.c index 2fbd729902..ffe1a96c6a 100644 --- a/Modules/collectionsmodule.c +++ b/Modules/collectionsmodule.c @@ -95,6 +95,9 @@ deque_new(PyTypeObject *type, PyObject *args, PyObject *kwds) dequeobject *deque; block *b; + if (!_PyArg_NoKeywords("deque()", kwds)) + return NULL; + /* create dequeobject structure */ deque = (dequeobject *)type->tp_alloc(type, 0); if (deque == NULL) |
