From e3fc7226280c1953218afe014983a410236bc2ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 27 Jan 2001 08:34:21 +0000 Subject: [PATCH] Synchronize with 1.10 of PyXML: Close parser when done. --- Lib/xml/dom/pulldom.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/xml/dom/pulldom.py b/Lib/xml/dom/pulldom.py index e2d2337ce4..fd26787eb1 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] -- 2.50.1