summaryrefslogtreecommitdiff
path: root/Objects/weakrefobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-06-08 14:41:19 +0300
committerGitHub <noreply@github.com>2017-06-08 14:41:19 +0300
commit6cca5c8459cc439cb050010ffa762a03859d3051 (patch)
tree9c144fde07123ff6c9d6f87a2a2b3d42883630d4 /Objects/weakrefobject.c
parent865de27dd79571a4a5c7a7d22a07fb909c4a9f8e (diff)
downloadcpython-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.c2
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))