Synchronize with 1.10 of PyXML: Close parser when done.

This commit is contained in:
Martin v. Löwis 2001-01-27 08:34:21 +00:00
parent dfb38e47f5
commit e3fc722628

View file

@ -184,8 +184,7 @@ def getEvent(self):
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]