summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-07-10 08:25:34 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-07-10 08:25:34 (GMT)
commit7e60192fe0dfd763b0d458cf0898ba4f7ac7d81a (patch)
tree791a6f43990e506a613becf34642cba64aa92ae6 /Modules
parentbb2bae84d6b29f991b757b46430c3c15c60059e9 (diff)
downloadcpython-7e60192fe0dfd763b0d458cf0898ba4f7ac7d81a.zip
cpython-7e60192fe0dfd763b0d458cf0898ba4f7ac7d81a.tar.gz
cpython-7e60192fe0dfd763b0d458cf0898ba4f7ac7d81a.tar.bz2
Remove _PyArg_NoStackKeywords(). (#2641)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_hashopenssl.c8
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") \
}