mirror of
https://github.com/solero/houdini.git
synced 2024-11-25 15:07:24 +00:00
Fix python3 compatibility iteritems() with items()
This commit is contained in:
parent
c393044949
commit
f26a225c4d
@ -57,11 +57,11 @@ class Spheniscidae:
|
||||
data_root.set('t', 'sys')
|
||||
|
||||
sub_element_parent = data_root
|
||||
for sub_element, sub_element_attribute in xml_dict.iteritems():
|
||||
for sub_element, sub_element_attribute in xml_dict.items():
|
||||
sub_element_object = SubElement(sub_element_parent, sub_element)
|
||||
|
||||
if type(xml_dict[sub_element]) is dict:
|
||||
for sub_element_attribute_key, sub_element_attribute_value in xml_dict[sub_element].iteritems():
|
||||
for sub_element_attribute_key, sub_element_attribute_value in xml_dict[sub_element].items():
|
||||
sub_element_object.set(sub_element_attribute_key, sub_element_attribute_value)
|
||||
else:
|
||||
sub_element_object.text = xml_dict[sub_element]
|
||||
|
Loading…
Reference in New Issue
Block a user