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

fixup! Synchronise xml2dict and dict2xml

parent 38666c84
...@@ -173,7 +173,7 @@ def xml2dict(xml): ...@@ -173,7 +173,7 @@ def xml2dict(xml):
result_dict = {} result_dict = {}
if xml: if xml:
tree = etree.fromstring(str2bytes(xml)) tree = etree.fromstring(str2bytes(xml))
for element in tree.findall('parameter'): for element in tree.iterfind('parameter'):
key = element.get('id') key = element.get('id')
value = result_dict.get(key, None) value = result_dict.get(key, None)
if value is not 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