Kaydet (Commit) bdf1f19f authored tarafından Andrew M. Kuchling's avatar Andrew M. Kuchling

[Apply patch #500457 from the PyXML tracker]

Add iterator support to pulldom.DOMEventStream

New feature, so not a bugfix candidate (though it should be safe for inclusion)
üst 3afb2d2b
......@@ -227,6 +227,15 @@ class DOMEventStream:
return rc
raise IndexError
def next(self):
rc = self.getEvent()
if rc:
return rc
raise StopIteration
def __iter__(self):
return self
def expandNode(self, node):
event = self.getEvent()
parents = [node]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment