Skip to content

Commit 65187ee

Browse files
authored
Replace getiterator with iter (#68)
1 parent 901abe5 commit 65187ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xiblint/xmlutils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ def parse_xml(file_path):
2727

2828
# ElementTree does not implement parent attributes: add parent property to every element
2929
parent_map = {child: parent
30-
for parent in tree.getiterator()
30+
for parent in tree.iter()
3131
for child in parent}
32-
for p in tree.getiterator():
32+
for p in tree.iter():
3333
p.parent = parent_map.get(p)
3434

3535
return tree

0 commit comments

Comments
 (0)