diff options
author | Georg Brandl <georg@python.org> | 2007-01-21 10:28:56 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-01-21 10:28:56 +0000 |
commit | 8e932e7d6886544a1b0f2503382d87e3875eb9fe (patch) | |
tree | fb068c18fbd6198e68b4ad4b5a0c8c7d1a389845 /Modules/arraymodule.c | |
parent | 9d8ccf7df2f9516ecf8e92dac67c299a930580b6 (diff) | |
download | cpython-git-8e932e7d6886544a1b0f2503382d87e3875eb9fe.tar.gz |
Bug #1486663: don't reject keyword arguments for subclasses of builtin
types.
(backport from rev. 53509)
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r-- | Modules/arraymodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 9de14fd060..210ada60f7 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1797,7 +1797,7 @@ array_new(PyTypeObject *type, PyObject *args, PyObject *kwds) PyObject *initial = NULL, *it = NULL; struct arraydescr *descr; - if (!_PyArg_NoKeywords("array.array()", kwds)) + if (type == &Arraytype && !_PyArg_NoKeywords("array.array()", kwds)) return NULL; if (!PyArg_ParseTuple(args, "c|O:array", &c, &initial)) |