Skip to content

Commit 94cd039

Browse files
MichaelMVSzocomputer
andauthored
Remove duplicate 'name' entry from template.create kwlist (#405)
The kwlist for PyXmlSec_TemplateCreate contained a spurious 'name' entry that did not correspond to any actual function parameter or variable. This caused the keyword argument array to have 6 entries while only 5 format characters were used in PyArg_ParseTupleAndKeywords (|zzz). The duplicate 'name' entry has been removed to fix this mismatch. Co-authored-by: zocomputer <help@zocomputer.com>
1 parent 45595ed commit 94cd039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/template.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static char PyXmlSec_TemplateCreate__doc__[] = \
3434
":return: the pointer to newly created :xml:`<dsig:Signature/>` node\n"
3535
":rtype: :class:`lxml.etree._Element`";
3636
static PyObject* PyXmlSec_TemplateCreate(PyObject* self, PyObject *args, PyObject *kwargs) {
37-
static char *kwlist[] = { "node", "c14n_method", "sign_method", "id", "ns", "name", NULL};
37+
static char *kwlist[] = { "node", "c14n_method", "sign_method", "id", "ns", NULL};
3838

3939
PyXmlSec_LxmlElementPtr node = NULL;
4040
PyXmlSec_Transform* c14n = NULL;

0 commit comments

Comments
 (0)