mirror of
https://github.com/python/cpython
synced 2024-10-18 19:23:19 +00:00
Synchronize with 1.10 of PyXML: Close parser when done.
This commit is contained in:
parent
dfb38e47f5
commit
e3fc722628
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue