Skip to content

Commit

Permalink
getchildren() is deprecated in Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepakThi authored Jul 30, 2021
1 parent 000cc7e commit 6547103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spatialmedia/metadata_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def parse_spherical_xml(contents, console):
return

sphericalDictionary = dict()
for child in parsed_xml.getchildren():
for child in list(parsed_xml):
if child.tag in SPHERICAL_TAGS.keys():
console("\t\t" + SPHERICAL_TAGS[child.tag]
+ " = " + child.text)
Expand Down

0 comments on commit 6547103

Please sign in to comment.