summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2000-10-06 21:12:12 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2000-10-06 21:12:12 (GMT)
commit31b485ffb0572fb1e71ee7ab6fb4a641a4710870 (patch)
treea29da9ebe54b979af3aaf9e1496895e36efcad6a
parent5fece7fc1be798869cefc71dc9ea7b8a7fd4173c (diff)
downloadcpython-31b485ffb0572fb1e71ee7ab6fb4a641a4710870.zip
cpython-31b485ffb0572fb1e71ee7ab6fb4a641a4710870.tar.gz
cpython-31b485ffb0572fb1e71ee7ab6fb4a641a4710870.tar.bz2
In an incremental parser, close the parser after feeding everything.
-rw-r--r--Lib/xml/sax/xmlreader.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/xml/sax/xmlreader.py b/Lib/xml/sax/xmlreader.py
index fea674b..7f31fc2 100644
--- a/Lib/xml/sax/xmlreader.py
+++ b/Lib/xml/sax/xmlreader.py
@@ -119,6 +119,7 @@ class IncrementalParser(XMLReader):
while buffer != "":
self.feed(buffer)
buffer = file.read(self._bufsize)
+ self.close()
def feed(self, data):
"""This method gives the raw XML data in the data parameter to