Commit d4489573 authored by Łukasz Nowak's avatar Łukasz Nowak

fixup! Synchronise xml2dict and dict2xml

parent 38666c84
......@@ -173,7 +173,7 @@ def xml2dict(xml):
result_dict = {}
if xml:
tree = etree.fromstring(str2bytes(xml))
for element in tree.findall('parameter'):
for element in tree.iterfind('parameter'):
key = element.get('id')
value = result_dict.get(key, None)
if value is not None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment