]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Synchronize with 1.10 of PyXML: Close parser when done.
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 27 Jan 2001 08:34:21 +0000 (08:34 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 27 Jan 2001 08:34:21 +0000 (08:34 +0000)
Lib/xml/dom/pulldom.py

index e2d2337ce4a434eb8011407fc50071b97b7e8a63..fd26787eb1803fd539c7bdfe79eed866024155ad 100644 (file)
@@ -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]