diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-01-27 08:34:21 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-01-27 08:34:21 (GMT) |
commit | e3fc7226280c1953218afe014983a410236bc2ea (patch) | |
tree | b26d5f2012ff7dca11040a1394e34ec7dd9e3a98 /Lib | |
parent | dfb38e47f54cb081f08a9474509274c5cae8efde (diff) | |
download | cpython-e3fc7226280c1953218afe014983a410236bc2ea.zip cpython-e3fc7226280c1953218afe014983a410236bc2ea.tar.gz cpython-e3fc7226280c1953218afe014983a410236bc2ea.tar.bz2 |
Synchronize with 1.10 of PyXML: Close parser when done.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/xml/dom/pulldom.py | 3 |
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] |