Remove _PyArg_NoStackKeywords(). (#2641) · pythoncapi/cpython@7e60192 · GitHub
Skip to content

Commit 7e60192

Browse files
serhiy-storchakavstinner
authored andcommitted
Remove _PyArg_NoStackKeywords(). (python#2641)
1 parent bb2bae8 commit 7e60192

3 files changed

Lines changed: 2 additions & 27 deletions

File tree

Include/modsupport.h

Lines changed: 0 additions & 3 deletions

Modules/_hashopenssl.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -925,15 +925,11 @@ generate_hash_name_list(void)
925925
*/
926926
#define GEN_CONSTRUCTOR(NAME) \
927927
static PyObject * \
928-
EVP_new_ ## NAME (PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) \
928+
EVP_new_ ## NAME (PyObject *self, PyObject **args, Py_ssize_t nargs) \
929929
{ \
930930
PyObject *data_obj = NULL; \
931931
Py_buffer view = { 0 }; \
932932
PyObject *ret_obj; \
933-
\
934-
if (!_PyArg_NoStackKeywords(#NAME, kwnames)) { \
935-
return NULL; \
936-
} \
937933
\
938934
if (!_PyArg_ParseStack(args, nargs, "|O:" #NAME , &data_obj)) { \
939935
return NULL; \
@@ -967,7 +963,7 @@ generate_hash_name_list(void)
967963

968964
/* a PyMethodDef structure for the constructor */
969965
#define CONSTRUCTOR_METH_DEF(NAME) \
970-
{"openssl_" #NAME, (PyCFunction)EVP_new_ ## NAME, METH_FASTCALL | METH_KEYWORDS, \
966+
{"openssl_" #NAME, (PyCFunction)EVP_new_ ## NAME, METH_FASTCALL, \
971967
PyDoc_STR("Returns a " #NAME \
972968
" hash object; optionally initialized with a string") \
973969
}

Python/getargs.c

Lines changed: 0 additions & 18 deletions

0 commit comments

Comments
 (0)