From: Martin v. Löwis Date: Sat, 27 Jan 2001 08:56:24 +0000 (+0000) Subject: Synchronize with PyXML 1.5. X-Git-Tag: v2.1a2~134 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=711a5bdc44823fde2935343cc33b15b19f49930d;p=thirdparty%2FPython%2Fcpython.git Synchronize with PyXML 1.5. --- diff --git a/Lib/xml/sax/_exceptions.py b/Lib/xml/sax/_exceptions.py index 1ea582fb999b..e23b5f453505 100644 --- a/Lib/xml/sax/_exceptions.py +++ b/Lib/xml/sax/_exceptions.py @@ -21,6 +21,7 @@ class SAXException(Exception): is optional.""" self._msg = msg self._exception = exception + Exception.__init__(self, msg) def getMessage(self): "Return a message for this exception." diff --git a/Lib/xml/sax/xmlreader.py b/Lib/xml/sax/xmlreader.py index 58ee814baf2f..8d376c4cc007 100644 --- a/Lib/xml/sax/xmlreader.py +++ b/Lib/xml/sax/xmlreader.py @@ -256,7 +256,7 @@ class InputSource: def setCharacterStream(self, charfile): """Set the character stream for this input source. (The stream - must be a Python 1.6 Unicode-wrapped file-like that performs + must be a Python 2.0 Unicode-wrapped file-like that performs conversion to Unicode strings.) If there is a character stream specified, the SAX parser will