diff options
author | Sylvain <sylvain.desodt+github@gmail.com> | 2017-06-15 15:05:23 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-06-15 15:05:23 (GMT) |
commit | 96c7c0685045b739fdc5145018cddfd252155713 (patch) | |
tree | 8c99f9484c33d59c49b45146e50f7d6c7b08a4a7 /Modules/_hashopenssl.c | |
parent | 8acb4cf2b3436652568d7a70228b166316181466 (diff) | |
download | cpython-96c7c0685045b739fdc5145018cddfd252155713.zip cpython-96c7c0685045b739fdc5145018cddfd252155713.tar.gz cpython-96c7c0685045b739fdc5145018cddfd252155713.tar.bz2 |
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 c83ebae..5096f93 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; \ } \ \ |