]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Move translation from expat.error to SAXParseException into feed, so that
authorMartin v. Löwis <martin@v.loewis.de>
Fri, 6 Oct 2000 21:08:59 +0000 (21:08 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Fri, 6 Oct 2000 21:08:59 +0000 (21:08 +0000)
commitee1dc157d7f425d8fdd12de098097441b4f17798
treede99623762f47d2e7a103c2fae2655e6f98e4e97
parentc2bac8745dea66529205929fe5aced8c104267d9
Move translation from expat.error to SAXParseException into feed, so that
callers of feed will get a SAXException.
In close, feed the last chunk first before calling endDocument, so that
the parser may report errors before the end of the document. Don't do
anything in a nested parser.
Don't call endDocument in parse; that will be called in close.
Use self._source for finding the SystemID; XML_GetBase will be cleared in
case of an error.
Lib/xml/sax/expatreader.py