mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -6,6 +6,17 @@ import handler
|
|||
# ===== XMLREADER =====
|
||||
|
||||
class XMLReader:
|
||||
"""Interface for reading an XML document using callbacks.
|
||||
|
||||
XMLReader is the interface that an XML parser's SAX2 driver must
|
||||
implement. This interface allows an application to set and query
|
||||
features and properties in the parser, to register event handlers
|
||||
for document processing, and to initiate a document parse.
|
||||
|
||||
All SAX interfaces are assumed to be synchronous: the parse
|
||||
methods must not return until parsing is complete, and readers
|
||||
must wait for an event-handler callback to return before reporting
|
||||
the next event."""
|
||||
|
||||
def __init__(self):
|
||||
self._cont_handler = handler.ContentHandler()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue