Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2aa93ef

Browse files
committed
Don't report a final chunk for an external entity parser.
1 parent ee1dc15 commit 2aa93ef

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

Lib/xml/sax/expatreader.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ def external_entity_ref(self, context, base, sysid, pubid):
196196

197197
try:
198198
xmlreader.IncrementalParser.parse(self, source)
199-
self._parser.Parse("",1)
200199
except:
201200
return 0 # FIXME: save error info here?
202201

0 commit comments

Comments
 (0)