diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-06-08 11:41:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-08 11:41:19 (GMT) |
commit | 6cca5c8459cc439cb050010ffa762a03859d3051 (patch) | |
tree | 9c144fde07123ff6c9d6f87a2a2b3d42883630d4 /Objects/sliceobject.c | |
parent | 865de27dd79571a4a5c7a7d22a07fb909c4a9f8e (diff) | |
download | cpython-6cca5c8459cc439cb050010ffa762a03859d3051.zip cpython-6cca5c8459cc439cb050010ffa762a03859d3051.tar.gz cpython-6cca5c8459cc439cb050010ffa762a03859d3051.tar.bz2 |
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/sliceobject.c')
-rw-r--r-- | Objects/sliceobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/sliceobject.c b/Objects/sliceobject.c index 4263737..b5aabfd 100644 --- a/Objects/sliceobject.c +++ b/Objects/sliceobject.c @@ -297,7 +297,7 @@ slice_new(PyTypeObject *type, PyObject *args, PyObject *kw) start = stop = step = NULL; - if (!_PyArg_NoKeywords("slice()", kw)) + if (!_PyArg_NoKeywords("slice", kw)) return NULL; if (!PyArg_UnpackTuple(args, "slice", 1, 3, &start, &stop, &step)) |