diff options
author | Raphaël Hertzog <hertzog@debian.org> | 2015-08-25 21:55:54 +0200 |
---|---|---|
committer | Raphaël Hertzog <hertzog@debian.org> | 2015-08-25 21:55:54 +0200 |
commit | 7300193becde71a344c8ac0973dc290fa24d800d (patch) | |
tree | 6490c364e7764294c209e536d42f3d31d23ebc0d /python/libxml.py | |
parent | 3871a83a5f0aebd8c00879eab14fe901c93dbfcf (diff) | |
download | libxml2-7300193becde71a344c8ac0973dc290fa24d800d.tar.gz |
Imported Upstream version 2.9.1+dfsg1
Diffstat (limited to 'python/libxml.py')
-rw-r--r-- | python/libxml.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/python/libxml.py b/python/libxml.py index 2466cc9..e507e0f 100644 --- a/python/libxml.py +++ b/python/libxml.py @@ -530,7 +530,7 @@ class xmlCoreDepthFirstItertor: self.parents = [] def __iter__(self): return self - def __next__(self): + def next(self): while 1: if self.node: ret = self.node @@ -542,7 +542,6 @@ class xmlCoreDepthFirstItertor: except IndexError: raise StopIteration self.node = parent.next - next = __next__ # # implements the breadth-first iterator for libxml2 DOM tree @@ -553,7 +552,7 @@ class xmlCoreBreadthFirstItertor: self.parents = [] def __iter__(self): return self - def __next__(self): + def next(self): while 1: if self.node: ret = self.node @@ -565,7 +564,6 @@ class xmlCoreBreadthFirstItertor: except IndexError: raise StopIteration self.node = parent.children - next = __next__ # # converters to present a nicer view of the XPath returns |