mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Add TODO to follow up and simplify logic in tools/loader related to elementtree.
This commit is contained in:
@@ -120,6 +120,7 @@ def _expand_macro(element, expand_el, macros):
|
||||
# HACK for elementtree, newer implementations (etree/lxml) won't
|
||||
# require this parent_map data structure but elementtree does not
|
||||
# track parents or recongnize .find('..').
|
||||
# TODO fix this now that we're not using elementtree
|
||||
parent_map = dict((c, p) for p in element.getiterator() for c in p)
|
||||
_xml_replace(expand_el, macro_def, parent_map)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user