commit | e3fc7226280c1953218afe014983a410236bc2ea | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Sat Jan 27 08:34:21 2001 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Sat Jan 27 08:34:21 2001 +0000 |
tree | b26d5f2012ff7dca11040a1394e34ec7dd9e3a98 | |
parent | dfb38e47f54cb081f08a9474509274c5cae8efde [diff] [blame] |
Synchronize with 1.10 of PyXML: Close parser when done.
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 @@ 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]