[Python-checkins] cpython (3.4): 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/e0ba8d3bed7e
changeset:   95452:e0ba8d3bed7e
branch:      3.4
parent:      95449:dde831bcb361
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
@@ -3588,7 +3588,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;
     }
@@ -3676,7 +3676,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