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.
This commit is contained in:
Serhiy Storchaka 2017-06-08 14:41:19 +03:00 committed by GitHub
parent 865de27dd7
commit 6cca5c8459
13 changed files with 23 additions and 23 deletions

View file

@ -332,7 +332,7 @@ weakref___init__(PyObject *self, PyObject *args, PyObject *kwargs)
{
PyObject *tmp;
if (!_PyArg_NoKeywords("ref()", kwargs))
if (!_PyArg_NoKeywords("ref", kwargs))
return -1;
if (parse_weakref_init_args("__init__", args, kwargs, &tmp, &tmp))