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 /Modules/_randommodule.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 'Modules/_randommodule.c')
-rw-r--r-- | Modules/_randommodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c index 9953654bdc..747a547342 100644 --- a/Modules/_randommodule.c +++ b/Modules/_randommodule.c @@ -435,7 +435,7 @@ random_new(PyTypeObject *type, PyObject *args, PyObject *kwds) RandomObject *self; PyObject *tmp; - if (type == &Random_Type && !_PyArg_NoKeywords("Random()", kwds)) + if (type == &Random_Type && !_PyArg_NoKeywords("Random", kwds)) return NULL; self = (RandomObject *)type->tp_alloc(type, 0); |