mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
In an incremental parser, close the parser after feeding everything.
This commit is contained in:
parent
5fece7fc1b
commit
31b485ffb0
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue