diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-04-06 17:05:22 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-04-06 17:05:22 (GMT) |
commit | 43b842775fc9be203754f1dceb39607f28e06256 (patch) | |
tree | 91e6563977d219a634af4ec3df8107262d30a59d /Modules | |
parent | 42c235e833ef0bb807453438dca25609605c1dac (diff) | |
download | cpython-43b842775fc9be203754f1dceb39607f28e06256.zip cpython-43b842775fc9be203754f1dceb39607f28e06256.tar.gz cpython-43b842775fc9be203754f1dceb39607f28e06256.tar.bz2 |
remove extra arguments in arg parsing format codes (closes #23875)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 9bd0776..c27073c 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -3588,7 +3588,7 @@ PySSL_enum_certificates(PyObject *self, PyObject *args, PyObject *kwds) PyObject *keyusage = NULL, *cert = NULL, *enc = NULL, *tup = NULL; PyObject *result = NULL; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "s|s:enum_certificates", + if (!PyArg_ParseTupleAndKeywords(args, kwds, "s:enum_certificates", kwlist, &store_name)) { return NULL; } @@ -3676,7 +3676,7 @@ PySSL_enum_crls(PyObject *self, PyObject *args, PyObject *kwds) PyObject *crl = NULL, *enc = NULL, *tup = NULL; PyObject *result = NULL; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "s|s:enum_crls", + if (!PyArg_ParseTupleAndKeywords(args, kwds, "s:enum_crls", kwlist, &store_name)) { return NULL; } |