Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VIGNET Pierre
cadbiom
Commits
8c7f586c
Commit
8c7f586c
authored
Jan 29, 2020
by
VIGNET Pierre
Browse files
[lib] XmlVisitor: fix types : str is mandatory
parent
b78e6507
Changes
1
Hide whitespace changes
Inline
Side-by-side
library/cadbiom/models/guard_transitions/translators/chart_xml.py
View file @
8c7f586c
...
...
@@ -165,7 +165,7 @@ class XmlVisitor:
else
:
subel
=
etree
.
SubElement
(
self
.
current_element
,
properties
[
0
])
attrname
=
properties
[
1
]
attr
=
properties
[
2
]
attr
=
[
str
(
val
)
for
val
in
properties
[
2
]
]
subel
.
attrib
.
update
(
dict
(
zip
(
attrname
,
attr
)))
# transitions
...
...
@@ -173,7 +173,7 @@ class XmlVisitor:
properties
=
transition
.
accept
(
self
)
sub_tr
=
etree
.
SubElement
(
self
.
current_element
,
properties
[
0
])
attrname
=
properties
[
1
]
attr
=
properties
[
2
]
attr
=
[
str
(
val
)
for
val
in
properties
[
2
]
]
sub_tr
.
attrib
.
update
(
dict
(
zip
(
attrname
,
attr
)))
self
.
current_element
=
save_macro
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment