Commit 38666c84 authored by Łukasz Nowak's avatar Łukasz Nowak

fixup! Synchronise xml2dict and dict2xml

parent a7f3ce09
......@@ -171,7 +171,7 @@ def dict2xml(dictionary):
def xml2dict(xml):
result_dict = {}
if xml is not None and xml != '':
if xml:
tree = etree.fromstring(str2bytes(xml))
for element in tree.findall('parameter'):
key = element.get('id')
......
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