mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
Synchronize with 1.10 of PyXML: Close parser when done.
This commit is contained in:
parent
dfb38e47f5
commit
e3fc722628
1 changed files with 1 additions and 2 deletions
|
|
@ -184,8 +184,7 @@ class DOMEventStream:
|
||||||
while not self.pulldom.firstEvent[1]:
|
while not self.pulldom.firstEvent[1]:
|
||||||
buf = self.stream.read(self.bufsize)
|
buf = self.stream.read(self.bufsize)
|
||||||
if not buf:
|
if not buf:
|
||||||
#FIXME: why doesn't Expat close work?
|
self.parser.close()
|
||||||
#self.parser.close()
|
|
||||||
return None
|
return None
|
||||||
self.parser.feed(buf)
|
self.parser.feed(buf)
|
||||||
rc = self.pulldom.firstEvent[1][0]
|
rc = self.pulldom.firstEvent[1][0]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue