[elbe-devel] [PATCH 12/13] add an iter() implementation to treeutils
Manuel Traut
manut at linutronix.de
Thu Nov 30 15:15:14 CET 2017
this fixes
00:20:44.776 for c in def_xml.node("/preseed"):
00:20:44.776 TypeError: iter() returned non-iterator of type 'eiter'
Signed-off-by: Manuel Traut <manut at linutronix.de>
---
elbepack/treeutils.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/elbepack/treeutils.py b/elbepack/treeutils.py
index 64b04a05..c998bde9 100644
--- a/elbepack/treeutils.py
+++ b/elbepack/treeutils.py
@@ -39,6 +39,9 @@ class eiter(object):
return elem(n)
+ def next(self):
+ return self.__next__()
+
class ebase(object):
def __init__(self, et):
self.et = et
--
2.15.1
More information about the elbe-devel
mailing list