8000 Refactor: replace query with parameter · python/cpython@c2089ff · GitHub
[go: up one dir, main page]

Skip to content

Commit c2089ff

Browse files
Refactor: replace query with parameter
Pass state as arg to element_setstate_from_Python()
1 parent 3489b1b commit c2089ff

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Modules/_elementtree.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,6 @@ element_setstate_from_Python(elementtreestate *st, ElementObject *self,
10791079
if (!args)
10801080
return NULL;
10811081

1082-
elementtreestate *st = ET_STATE_GLOBAL;
10831082
if (PyArg_ParseTupleAndKeywords(args, state, "|$OOOOO", kwlist, &tag,
10841083
&attrib, &text, &tail, &children))
10851084
retval = element_setstate_from_attributes(st, self, tag, attrib, text,

0 commit comments

Comments
 (0)
0