mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +00:00
Improvements to doco strings.
Tiny bug fix to expatreader.py (endDocument was only called after errors).
This commit is contained in:
parent
33315b180b
commit
bb757136b2
4 changed files with 27 additions and 14 deletions
|
@ -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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue