[elbe-devel] [PATCH v3 2/4] treeutils: add get_parent
Akash Satamkar
akash at linutronix.de
Tue Sep 17 15:29:34 CEST 2019
Signed-off-by: Akash Satamkar <akash at linutronix.de>
---
elbepack/treeutils.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/elbepack/treeutils.py b/elbepack/treeutils.py
index b1ac3711..16308a42 100644
--- a/elbepack/treeutils.py
+++ b/elbepack/treeutils.py
@@ -113,6 +113,9 @@ class elem(ebase):
elif attr in ['false', '0']:
return False
+ def get_parent(self):
+ return elem(self.et.getparent())
+
class etree(ebase):
def __init__(self, fname):
--
2.20.1
More information about the elbe-devel
mailing list