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
236a0e2e
Commit
236a0e2e
authored
Jan 29, 2020
by
VIGNET Pierre
Browse files
[lib] XmlVisitor: Please do not reimplement sets in Python...
parent
978ce280
Changes
1
Hide whitespace changes
Inline
Side-by-side
library/cadbiom/models/guard_transitions/translators/chart_xml.py
View file @
236a0e2e
...
...
@@ -281,16 +281,11 @@ class XmlVisitor:
return
self
.
xml
def
get_fact_ids
(
self
):
"""Get litterature references
:rtype: <set>
"""
get litterature references
"""
model_fact
=
[]
for
i
in
self
.
fact_list
:
if
i
in
model_fact
:
continue
else
:
model_fact
.
append
(
i
)
return
model_fact
return
set
(
self
.
fact_list
)
class
MakeHandler
(
ContentHandler
):
...
...
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