mirror of
https://github.com/python/cpython.git
synced 2024-11-26 11:24:40 +08:00
Don't report a final chunk for an external entity parser.
This commit is contained in:
parent
ee1dc157d7
commit
2aa93efda0
@ -196,7 +196,6 @@ class ExpatParser(xmlreader.IncrementalParser, xmlreader.Locator):
|
||||
|
||||
try:
|
||||
xmlreader.IncrementalParser.parse(self, source)
|
||||
self._parser.Parse("",1)
|
||||
except:
|
||||
return 0 # FIXME: save error info here?
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user