Skip to content

Commit 0409080

Browse files
committed
Fix deprecated .getchildren() call
Augments 167b714
1 parent cef9189 commit 0409080

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/import_cldr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ def parse_unit_patterns(data, tree):
855855
unit_type = unit.attrib['type']
856856
compound_unit_info = {}
857857
compound_variations = {}
858-
for child in unit.getchildren():
858+
for child in unit:
859859
if child.tag == "unitPrefixPattern":
860860
compound_unit_info['prefix'] = _text(child)
861861
elif child.tag == "compoundUnitPattern":

0 commit comments

Comments
 (0)