Commit 31b485ff authored by Martin v. Löwis's avatar Martin v. Löwis

In an incremental parser, close the parser after feeding everything.

parent 5fece7fc
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment