Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3afb2d2 commit bdf1f19Copy full SHA for bdf1f19
1 file changed
Lib/xml/dom/pulldom.py
@@ -227,6 +227,15 @@ def __getitem__(self, pos):
227
return rc
228
raise IndexError
229
230
+ def next(self):
231
+ rc = self.getEvent()
232
+ if rc:
233
+ return rc
234
+ raise StopIteration
235
+
236
+ def __iter__(self):
237
+ return self
238
239
def expandNode(self, node):
240
event = self.getEvent()
241
parents = [node]
0 commit comments