summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-04-06 17:05:22 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-04-06 17:05:22 (GMT)
commit43b842775fc9be203754f1dceb39607f28e06256 (patch)
tree91e6563977d219a634af4ec3df8107262d30a59d /Modules
parent42c235e833ef0bb807453438dca25609605c1dac (diff)
downloadcpython-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.c4
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;
}