diff options
author | Lars Gustäbel <lars@gustaebel.de> | 2000-09-24 20:38:18 (GMT) |
---|---|---|
committer | Lars Gustäbel <lars@gustaebel.de> | 2000-09-24 20:38:18 (GMT) |
commit | bb757136b29369e88c72e1563ee95cd6514c15a0 (patch) | |
tree | 8c1e6a6f736bf2f6e3c65ab9e89f4ac26b0af83a /Lib/xml/sax/handler.py | |
parent | 33315b180b3cc6981169cf60744445de91a6b8e9 (diff) | |
download | cpython-bb757136b29369e88c72e1563ee95cd6514c15a0.zip cpython-bb757136b29369e88c72e1563ee95cd6514c15a0.tar.gz cpython-bb757136b29369e88c72e1563ee95cd6514c15a0.tar.bz2 |
Improvements to doco strings.
Tiny bug fix to expatreader.py (endDocument was only called after errors).
Diffstat (limited to 'Lib/xml/sax/handler.py')
-rw-r--r-- | Lib/xml/sax/handler.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Lib/xml/sax/handler.py b/Lib/xml/sax/handler.py index c80457c..0931014 100644 --- a/Lib/xml/sax/handler.py +++ b/Lib/xml/sax/handler.py @@ -20,13 +20,14 @@ version = '2.0beta' # ===== ERRORHANDLER ===== class ErrorHandler: - """Basic interface for SAX error handlers. If you create an object - that implements this interface, then register the object with your - Parser, the parser will call the methods in your object to report - all warnings and errors. There are three levels of errors - available: warnings, (possibly) recoverable errors, and - unrecoverable errors. All methods take a SAXParseException as the - only parameter.""" + """Basic interface for SAX error handlers. + + If you create an object that implements this interface, then + register the object with your XMLReader, the parser will call the + methods in your object to report all warnings and errors. There + are three levels of errors available: warnings, (possibly) + recoverable errors, and unrecoverable errors. All methods take a + SAXParseException as the only parameter.""" def error(self, exception): "Handle a recoverable error." |