Commit 0d5c4493 authored by Michael Murtaugh's avatar Michael Murtaugh

updated replace

parent f2fc4dd1
Pipeline #208 failed with stages
......@@ -56,8 +56,8 @@ def replace_elt (t, elt, tag):
def replace_elt_pi (elt, parent, index, tag):
# print ("replacing {0} with {1}".format(elt.tag, tag), file=sys.stderr)
newelt = ET.SubElement(parent, tag)
p.remove(elt)
p.insert(i, newelt)
parent.remove(elt)
parent.insert(index, newelt)
return newelt
def containing_tags (elt, fromelt):
......
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