]> granicus.if.org Git - python/commitdiff
remove extra arguments in arg parsing format codes (closes #23875)
authorBenjamin Peterson <benjamin@python.org>
Mon, 6 Apr 2015 17:05:22 +0000 (13:05 -0400)
committerBenjamin Peterson <benjamin@python.org>
Mon, 6 Apr 2015 17:05:22 +0000 (13:05 -0400)
Modules/_ssl.c

index 9bd07764bc08efc54a0b5a6d762ff04d3a290e7f..c27073c12105d32961be6db97c2ca9e81b8dbcb4 100644 (file)
@@ -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;
     }