Commit 48c23608 authored by Martin v. Löwis's avatar Martin v. Löwis

Synchronize with 1.10 of PyXML: Close parser when done.

parent 742faf12
......@@ -184,8 +184,7 @@ class DOMEventStream:
while not self.pulldom.firstEvent[1]:
buf = self.stream.read(self.bufsize)
if not buf:
#FIXME: why doesn't Expat close work?
#self.parser.close()
self.parser.close()
return None
self.parser.feed(buf)
rc = self.pulldom.firstEvent[1][0]
......
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