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

Skip to content

Commit 711a5bd

Browse files
committed
Synchronize with PyXML 1.5.
1 parent 0591725 commit 711a5bd

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/xml/sax/_exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def __init__(self, msg, exception=None):
2121
is optional."""
2222
self._msg = msg
2323
self._exception = exception
24+
Exception.__init__(self, msg)
2425

2526
def getMessage(self):
2627
"Return a message for this exception."

Lib/xml/sax/xmlreader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def getByteStream(self):
256256

257257
def setCharacterStream(self, charfile):
258258
"""Set the character stream for this input source. (The stream
259-
must be a Python 1.6 Unicode-wrapped file-like that performs
259+
must be a Python 2.0 Unicode-wrapped file-like that performs
260260
conversion to Unicode strings.)
261261
262262
If there is a character stream specified, the SAX parser will

0 commit comments

Comments
 (0)