git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
616217d
)
added getparent()
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 15 Nov 2011 02:57:23 +0000
(21:57 -0500)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 15 Nov 2011 21:20:42 +0000
(16:20 -0500)
sfa/util/xml.py
patch
|
blob
|
history
diff --git
a/sfa/util/xml.py
b/sfa/util/xml.py
index
3b19491
..
dece35b
100755
(executable)
--- a/
sfa/util/xml.py
+++ b/
sfa/util/xml.py
@@
-61,6
+61,9
@@
class XmlNode:
else:
self.node.append(elem)
+ def getparent(self):
+ return XmlNode(self.node.getparent(), self.namespaces)
+
def remove_elements(name):
"""
Removes all occurences of an element from the tree. Start at