[elbe-devel] [PATCH 07/10] add iter() to etree iterations were needed
Manuel Traut
manut at linutronix.de
Fri Sep 29 00:11:43 CEST 2017
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 cd45a4db..65386a68 100644
--- a/elbepack/treeutils.py
+++ b/elbepack/treeutils.py
@@ -41,6 +41,9 @@ class eiter(object):
return elem(n)
+ def next(self):
+ return self.__next__()
+
class ebase(object):
def __init__(self, et):
self.et = et
--
2.14.1
More information about the elbe-devel
mailing list