Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 43b8427

Browse files
committed
remove extra arguments in arg parsing format codes (closes #23875)
1 parent 42c235e commit 43b8427

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/_ssl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3588,7 +3588,7 @@ PySSL_enum_certificates(PyObject *self, PyObject *args, PyObject *kwds)
35883588
PyObject *keyusage = NULL, *cert = NULL, *enc = NULL, *tup = NULL;
35893589
PyObject *result = NULL;
35903590

3591-
if (!PyArg_ParseTupleAndKeywords(args, kwds, "s|s:enum_certificates",
3591+
if (!PyArg_ParseTupleAndKeywords(args, kwds, "s:enum_certificates",
35923592
kwlist, &store_name)) {
35933593
return NULL;
35943594
}
@@ -3676,7 +3676,7 @@ PySSL_enum_crls(PyObject *self, PyObject *args, PyObject *kwds)
36763676
PyObject *crl = NULL, *enc = NULL, *tup = NULL;
36773677
PyObject *result = NULL;
36783678

3679-
if (!PyArg_ParseTupleAndKeywords(args, kwds, "s|s:enum_crls",
3679+
if (!PyArg_ParseTupleAndKeywords(args, kwds, "s:enum_crls",
36803680
kwlist, &store_name)) {
36813681
return NULL;
36823682
}

0 commit comments

Comments
 (0)