From 43b842775fc9be203754f1dceb39607f28e06256 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 6 Apr 2015 13:05:22 -0400 Subject: [PATCH] remove extra arguments in arg parsing format codes (closes #23875) --- Modules/_ssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 9bd07764bc0..c27073c1210 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -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; }