diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-07-10 08:25:34 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-07-10 08:25:34 (GMT) |
commit | 7e60192fe0dfd763b0d458cf0898ba4f7ac7d81a (patch) | |
tree | 791a6f43990e506a613becf34642cba64aa92ae6 /Modules/_hashopenssl.c | |
parent | bb2bae84d6b29f991b757b46430c3c15c60059e9 (diff) | |
download | cpython-7e60192fe0dfd763b0d458cf0898ba4f7ac7d81a.zip cpython-7e60192fe0dfd763b0d458cf0898ba4f7ac7d81a.tar.gz cpython-7e60192fe0dfd763b0d458cf0898ba4f7ac7d81a.tar.bz2 |
Remove _PyArg_NoStackKeywords(). (#2641)
Diffstat (limited to 'Modules/_hashopenssl.c')
-rw-r--r-- | Modules/_hashopenssl.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c index 7ae7ea5..037fa4e 100644 --- a/Modules/_hashopenssl.c +++ b/Modules/_hashopenssl.c @@ -925,16 +925,12 @@ generate_hash_name_list(void) */ #define GEN_CONSTRUCTOR(NAME) \ static PyObject * \ - EVP_new_ ## NAME (PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) \ + EVP_new_ ## NAME (PyObject *self, PyObject **args, Py_ssize_t nargs) \ { \ PyObject *data_obj = NULL; \ Py_buffer view = { 0 }; \ PyObject *ret_obj; \ \ - if (!_PyArg_NoStackKeywords(#NAME, kwnames)) { \ - return NULL; \ - } \ - \ if (!_PyArg_ParseStack(args, nargs, "|O:" #NAME , &data_obj)) { \ return NULL; \ } \ @@ -967,7 +963,7 @@ generate_hash_name_list(void) /* a PyMethodDef structure for the constructor */ #define CONSTRUCTOR_METH_DEF(NAME) \ - {"openssl_" #NAME, (PyCFunction)EVP_new_ ## NAME, METH_FASTCALL | METH_KEYWORDS, \ + {"openssl_" #NAME, (PyCFunction)EVP_new_ ## NAME, METH_FASTCALL, \ PyDoc_STR("Returns a " #NAME \ " hash object; optionally initialized with a string") \ } |