]> git.ipfire.org Git - thirdparty/Python/cpython.git/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 8515c0fd1191b9a1639594c96d6cf03419e7a3ad..b7537e6c72bc80cc3905eadcd66d1cdb54c9a5d7 100644 (file)
@@ -3645,7 +3645,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;
     }
@@ -3733,7 +3733,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;
     }