diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2000-10-06 21:12:12 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2000-10-06 21:12:12 (GMT) |
commit | 31b485ffb0572fb1e71ee7ab6fb4a641a4710870 (patch) | |
tree | a29da9ebe54b979af3aaf9e1496895e36efcad6a /Lib/xml/sax/xmlreader.py | |
parent | 5fece7fc1be798869cefc71dc9ea7b8a7fd4173c (diff) | |
download | cpython-31b485ffb0572fb1e71ee7ab6fb4a641a4710870.zip cpython-31b485ffb0572fb1e71ee7ab6fb4a641a4710870.tar.gz cpython-31b485ffb0572fb1e71ee7ab6fb4a641a4710870.tar.bz2 |
In an incremental parser, close the parser after feeding everything.
Diffstat (limited to 'Lib/xml/sax/xmlreader.py')
-rw-r--r-- | Lib/xml/sax/xmlreader.py | 1 |
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 |