Commit 8c7f586c authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[lib] XmlVisitor: fix types : str is mandatory

parent b78e6507
...@@ -165,7 +165,7 @@ class XmlVisitor: ...@@ -165,7 +165,7 @@ class XmlVisitor:
else: else:
subel = etree.SubElement(self.current_element, properties[0]) subel = etree.SubElement(self.current_element, properties[0])
attrname = properties[1] attrname = properties[1]
attr = properties[2] attr = [str(val) for val in properties[2]]
subel.attrib.update(dict(zip(attrname, attr))) subel.attrib.update(dict(zip(attrname, attr)))
# transitions # transitions
...@@ -173,7 +173,7 @@ class XmlVisitor: ...@@ -173,7 +173,7 @@ class XmlVisitor:
properties = transition.accept(self) properties = transition.accept(self)
sub_tr = etree.SubElement(self.current_element, properties[0]) sub_tr = etree.SubElement(self.current_element, properties[0])
attrname = properties[1] attrname = properties[1]
attr = properties[2] attr = [str(val) for val in properties[2]]
sub_tr.attrib.update(dict(zip(attrname, attr))) sub_tr.attrib.update(dict(zip(attrname, attr)))
self.current_element = save_macro self.current_element = save_macro
......
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