mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Synchronize with PyXML 1.5.
This commit is contained in:
parent
0591725bc5
commit
711a5bdc44
2 changed files with 2 additions and 1 deletions
|
@ -21,6 +21,7 @@ class SAXException(Exception):
|
||||||
is optional."""
|
is optional."""
|
||||||
self._msg = msg
|
self._msg = msg
|
||||||
self._exception = exception
|
self._exception = exception
|
||||||
|
Exception.__init__(self, msg)
|
||||||
|
|
||||||
def getMessage(self):
|
def getMessage(self):
|
||||||
"Return a message for this exception."
|
"Return a message for this exception."
|
||||||
|
|
|
@ -256,7 +256,7 @@ class InputSource:
|
||||||
|
|
||||||
def setCharacterStream(self, charfile):
|
def setCharacterStream(self, charfile):
|
||||||
"""Set the character stream for this input source. (The stream
|
"""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.)
|
conversion to Unicode strings.)
|
||||||
|
|
||||||
If there is a character stream specified, the SAX parser will
|
If there is a character stream specified, the SAX parser will
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue