summaryrefslogtreecommitdiffstats
path: root/Lib/xml/dom/pulldom.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-01-27 08:34:21 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-01-27 08:34:21 (GMT)
commite3fc7226280c1953218afe014983a410236bc2ea (patch)
treeb26d5f2012ff7dca11040a1394e34ec7dd9e3a98 /Lib/xml/dom/pulldom.py
parentdfb38e47f54cb081f08a9474509274c5cae8efde (diff)
downloadcpython-e3fc7226280c1953218afe014983a410236bc2ea.zip
cpython-e3fc7226280c1953218afe014983a410236bc2ea.tar.gz
cpython-e3fc7226280c1953218afe014983a410236bc2ea.tar.bz2
Synchronize with 1.10 of PyXML: Close parser when done.
Diffstat (limited to 'Lib/xml/dom/pulldom.py')
-rw-r--r--Lib/xml/dom/pulldom.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/xml/dom/pulldom.py b/Lib/xml/dom/pulldom.py
index e2d2337..fd26787 100644
--- a/Lib/xml/dom/pulldom.py
+++ b/Lib/xml/dom/pulldom.py
@@ -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]