diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-06-08 14:41:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-08 14:41:19 +0300 |
commit | 6cca5c8459cc439cb050010ffa762a03859d3051 (patch) | |
tree | 9c144fde07123ff6c9d6f87a2a2b3d42883630d4 /Objects/weakrefobject.c | |
parent | 865de27dd79571a4a5c7a7d22a07fb909c4a9f8e (diff) | |
download | cpython-git-6cca5c8459cc439cb050010ffa762a03859d3051.tar.gz |
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 'Objects/weakrefobject.c')
-rw-r--r-- | Objects/weakrefobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/weakrefobject.c b/Objects/weakrefobject.c index da05950f3f..f600179d0e 100644 --- a/Objects/weakrefobject.c +++ b/Objects/weakrefobject.c @@ -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)) |