From 2aa93efda0d2b99a48c14cd777e523934bf51aa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 6 Oct 2000 21:10:34 +0000 Subject: Don't report a final chunk for an external entity parser. --- Lib/xml/sax/expatreader.py | 1 - 1 file changed, 1 deletion(-) diff --git a/Lib/xml/sax/expatreader.py b/Lib/xml/sax/expatreader.py index cc2f7ea..14bc087 100644 --- a/Lib/xml/sax/expatreader.py +++ b/Lib/xml/sax/expatreader.py @@ -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? -- cgit v0.12