Skip to content

Commit 3e20fa8

Browse files
authored
Fix XML parsing by removing unnecessary element removal
Remove redundant root.remove(elem) call in XML parsing.
1 parent 029e56b commit 3e20fa8

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

pystreamapi/loaders/__xml/__xml_loader.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ def _iterparse_xml(source: "IO[Any]", retrieve_children: bool, cast_types: bool)
9292
else:
9393
if depth == 0:
9494
yield __parse_xml(root, cast_types)
95-
root.remove(elem)
9695
return
9796

9897

0 commit comments

Comments
 (0)