diff options
author | 2017-06-08 14:41:19 +0300 | |
---|---|---|
committer | 2017-06-08 14:41:19 +0300 | |
commit | 6cca5c8459cc439cb050010ffa762a03859d3051 (patch) | |
tree | 9c144fde07123ff6c9d6f87a2a2b3d42883630d4 /Modules/arraymodule.c | |
parent | bpo-30598: _PySys_EndInit() now duplicates warnoptions (#1998) (diff) | |
download | cpython-6cca5c8459cc439cb050010ffa762a03859d3051.tar.gz cpython-6cca5c8459cc439cb050010ffa762a03859d3051.tar.bz2 cpython-6cca5c8459cc439cb050010ffa762a03859d3051.zip |
bpo-30592: Fixed error messages for some builtins. (#1996)
Error messages when pass keyword arguments to some builtins that
don't support keyword arguments contained double parenthesis: "()()".
The regression was introduced by bpo-30534.
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 abb578aed34..06461c38036 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -2568,7 +2568,7 @@ array_new(PyTypeObject *type, PyObject *args, PyObject *kwds) PyObject *initial = NULL, *it = NULL; const struct arraydescr *descr; - if (type == &Arraytype && !_PyArg_NoKeywords("array.array()", kwds)) + if (type == &Arraytype && !_PyArg_NoKeywords("array.array", kwds)) return NULL; if (!PyArg_ParseTuple(args, "C|O:array", &c, &initial)) |