[Python-checkins] cpython (2.7): remove extra arguments in arg parsing format codes (closes #23875)

benjamin.peterson python-checkins at python.org
Mon Apr 6 19:08:42 CEST 2015


https://hg.python.org/cpython/rev/5f27e13faae2
changeset:   95453:5f27e13faae2
branch:      2.7
parent:      95437:dedf481ec2be
user:        Benjamin Peterson <benjamin at python.org>
date:        Mon Apr 06 13:05:22 2015 -0400
summary:
  remove extra arguments in arg parsing format codes (closes #23875)

files:
  Modules/_ssl.c |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Modules/_ssl.c b/Modules/_ssl.c
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -3645,7 +3645,7 @@
     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 @@
     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;
     }

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list