From 6cca5c8459cc439cb050010ffa762a03859d3051 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 8 Jun 2017 14:41:19 +0300 Subject: 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. --- Objects/boolobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Objects/boolobject.c') diff --git a/Objects/boolobject.c b/Objects/boolobject.c index becdfcbbb4..b92fafe620 100644 --- a/Objects/boolobject.c +++ b/Objects/boolobject.c @@ -45,7 +45,7 @@ bool_new(PyTypeObject *type, PyObject *args, PyObject *kwds) PyObject *x = Py_False; long ok; - if (!_PyArg_NoKeywords("bool()", kwds)) + if (!_PyArg_NoKeywords("bool", kwds)) return NULL; if (!PyArg_UnpackTuple(args, "bool", 0, 1, &x)) return NULL; -- cgit v1.2.1