From: Martin v. Löwis Date: Sat, 27 Jan 2001 08:34:21 +0000 (+0000) Subject: Synchronize with 1.10 of PyXML: Close parser when done. X-Git-Tag: v2.1a2~138 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3fc7226280c1953218afe014983a410236bc2ea;p=thirdparty%2FPython%2Fcpython.git 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 e2d2337ce4a4..fd26787eb180 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]