diff options
author | Sylvain <sylvain.desodt+github@gmail.com> | 2017-06-15 17:05:23 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-06-15 18:05:23 +0300 |
commit | 96c7c0685045b739fdc5145018cddfd252155713 (patch) | |
tree | 8c99f9484c33d59c49b45146e50f7d6c7b08a4a7 /Modules/_hashopenssl.c | |
parent | 8acb4cf2b3436652568d7a70228b166316181466 (diff) | |
download | cpython-git-96c7c0685045b739fdc5145018cddfd252155713.tar.gz |
bpo-20627: Fix error message when keyword arguments are used (#2115)
Diffstat (limited to 'Modules/_hashopenssl.c')
-rw-r--r-- | Modules/_hashopenssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c index c83ebae454..5096f93818 100644 --- a/Modules/_hashopenssl.c +++ b/Modules/_hashopenssl.c @@ -931,11 +931,11 @@ generate_hash_name_list(void) Py_buffer view = { 0 }; \ PyObject *ret_obj; \ \ - if (!_PyArg_ParseStack(args, nargs, "|O:" #NAME , &data_obj)) { \ + if (!_PyArg_NoStackKeywords(#NAME, kwnames)) { \ return NULL; \ } \ \ - if (!_PyArg_NoStackKeywords(#NAME, kwnames)) { \ + if (!_PyArg_ParseStack(args, nargs, "|O:" #NAME , &data_obj)) { \ return NULL; \ } \ \ |