summaryrefslogtreecommitdiffstats
path: root/Modules/arraymodule.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-01-21 10:28:43 (GMT)
committerGeorg Brandl <georg@python.org>2007-01-21 10:28:43 (GMT)
commitb84c13792db49abdfac97663badfeda0bba11279 (patch)
tree9a6099e4f7800a7a2cbaf4218c3039939263bf40 /Modules/arraymodule.c
parentaef4c6bc00f1b49b4a92b362ef1b60e7c5af5e86 (diff)
downloadcpython-b84c13792db49abdfac97663badfeda0bba11279.zip
cpython-b84c13792db49abdfac97663badfeda0bba11279.tar.gz
cpython-b84c13792db49abdfac97663badfeda0bba11279.tar.bz2
Bug #1486663: don't reject keyword arguments for subclasses of builtin
types.
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r--Modules/arraymodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c
index 9de14fd..210ada6 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))