Module Expr Str Import alias ImportFrom alias alias ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Raise Call NameLoad BinOpMod Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults BinOpPow Num Num body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr While CompareNotEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Return Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr body Raise NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr body Raise NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareIn NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareIn NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq NameLoad NameLoad body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Raise NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq NameLoad NameLoad body Return NameLoad Raise NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args defaults body Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A An XML Reader is the SAX 2 name for an XML parser. XML Parsers
should be based on this code.  N/A handler _exceptions SAXNotSupportedException SAXNotRecognizedException XMLReader N/A N/A N/A 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. __init__ N/A N/A self N/A N/A N/A N/A self _cont_handler N/A N/A handler ContentHandler N/A N/A self _dtd_handler N/A N/A handler DTDHandler N/A N/A self _ent_handler N/A N/A handler EntityResolver N/A N/A self _err_handler N/A N/A handler ErrorHandler N/A parse N/A N/A self source N/A N/A N/A Parse an XML document from a system identifier or an InputSource. N/A N/A NotImplementedError This method must be implemented! N/A getContentHandler N/A N/A self N/A N/A N/A Returns the current ContentHandler. N/A N/A self _cont_handler N/A setContentHandler N/A N/A self handler N/A N/A N/A Registers a new object to receive document content events. N/A N/A self _cont_handler handler N/A getDTDHandler N/A N/A self N/A N/A N/A Returns the current DTD handler. N/A N/A self _dtd_handler N/A setDTDHandler N/A N/A self handler N/A N/A N/A Register an object to receive basic DTD-related events. N/A N/A self _dtd_handler handler N/A getEntityResolver N/A N/A self N/A N/A N/A Returns the current EntityResolver. N/A N/A self _ent_handler N/A setEntityResolver N/A N/A self resolver N/A N/A N/A Register an object to resolve external entities. N/A N/A self _ent_handler resolver N/A getErrorHandler N/A N/A self N/A N/A N/A Returns the current ErrorHandler. N/A N/A self _err_handler N/A setErrorHandler N/A N/A self handler N/A N/A N/A Register an object to receive error-message events. N/A N/A self _err_handler handler N/A setLocale N/A N/A self locale N/A N/A N/A Allow an application to set the locale for errors and warnings.

        SAX parsers are not required to provide localization for errors
        and warnings; if they cannot support the requested locale,
        however, they must raise a SAX exception. Applications may
        request a locale change in the middle of a parse. N/A N/A SAXNotSupportedException Locale support not implemented N/A getFeature N/A N/A self name N/A N/A N/A Looks up and returns the state of a SAX2 feature. N/A N/A SAXNotRecognizedException N/A Feature '%s' not recognized name N/A setFeature N/A N/A self name state N/A N/A N/A Sets the state of a SAX2 feature. N/A N/A SAXNotRecognizedException N/A Feature '%s' not recognized name N/A getProperty N/A N/A self name N/A N/A N/A Looks up and returns the value of a SAX2 property. N/A N/A SAXNotRecognizedException N/A Property '%s' not recognized name N/A setProperty N/A N/A self name value N/A N/A N/A Sets the value of a SAX2 property. N/A N/A SAXNotRecognizedException N/A Property '%s' not recognized name N/A N/A IncrementalParser N/A XMLReader N/A N/A This interface adds three extra methods to the XMLReader
    interface that allow XML parsers to support incremental
    parsing. Support for this interface is optional, since not all
    underlying XML parsers support this functionality.

    When the parser is instantiated it is ready to begin accepting
    data from the feed method immediately. After parsing has been
    finished with a call to close the reset method must be called to
    make the parser ready to accept new data, either from feed or
    using the parse method.

    Note that these methods must _not_ be called during parsing, that
    is, after parse has been called and before it returns.

    By default, the class also implements the parse method of the XMLReader
    interface using the feed, close and reset methods of the
    IncrementalParser interface as a convenience to SAX 2.0 driver
    writers. __init__ N/A N/A self bufsize N/A N/A 2 16 N/A N/A N/A self _bufsize bufsize N/A N/A N/A XMLReader __init__ self N/A parse N/A N/A self source N/A N/A N/A saxutils N/A source N/A N/A saxutils prepare_input_source source N/A N/A N/A self prepareParser source N/A file N/A N/A source getByteStream N/A buffer N/A N/A file read N/A self _bufsize N/A N/A buffer N/A N/A N/A N/A self feed buffer N/A buffer N/A N/A file read N/A self _bufsize N/A N/A N/A self close N/A feed N/A N/A self data N/A N/A N/A This method gives the raw XML data in the data parameter to
        the parser and makes it parse the data, emitting the
        corresponding events. It is allowed for XML constructs to be
        split across several calls to feed.

        feed may raise SAXException. N/A N/A NotImplementedError This method must be implemented! N/A prepareParser N/A N/A self source N/A N/A N/A This method is called by the parse implementation to allow
        the SAX 2.0 driver to prepare itself for parsing. N/A N/A NotImplementedError prepareParser must be overridden! N/A close N/A N/A self N/A N/A N/A This method is called when the entire XML document has been
        passed to the parser through the feed method, to notify the
        parser that there are no more data. This allows the parser to
        do the final checks on the document and empty the internal
        data buffer.

        The parser will not be ready to parse another document until
        the reset method has been called.

        close may raise SAXException. N/A N/A NotImplementedError This method must be implemented! N/A reset N/A N/A self N/A N/A N/A This method is called after close has been called to reset
        the parser so that it is ready to parse new documents. The
        results of calling parse or feed after close without calling
        reset are undefined. N/A N/A NotImplementedError This method must be implemented! N/A N/A Locator N/A N/A N/A Interface for associating a SAX event with a document
    location. A locator object will return valid results only during
    calls to DocumentHandler methods; at any other time, the
    results are unpredictable. getColumnNumber N/A N/A self N/A N/A N/A Return the column number where the current event ends. N/A -1 N/A getLineNumber N/A N/A self N/A N/A N/A Return the line number where the current event ends. N/A -1 N/A getPublicId N/A N/A self N/A N/A N/A Return the public identifier for the current event. N/A None N/A getSystemId N/A N/A self N/A N/A N/A Return the system identifier for the current event. N/A None N/A N/A InputSource N/A N/A N/A Encapsulation of the information needed by the XMLReader to
    read entities.

    This class may include information about the public identifier,
    system identifier, byte stream (possibly with character encoding
    information) and/or the character stream of an entity.

    Applications will create objects of this class for use in the
    XMLReader.parse method and for returning from
    EntityResolver.resolveEntity.

    An InputSource belongs to the application, the XMLReader is not
    allowed to modify InputSource objects passed to it from the
    application, although it may make copies and modify those. __init__ N/A N/A self system_id N/A None N/A N/A N/A self __system_id system_id N/A N/A self __public_id None N/A N/A self __encoding None N/A N/A self __bytefile None N/A N/A self __charfile None N/A setPublicId N/A N/A self public_id N/A N/A N/A Sets the public identifier of this InputSource. N/A N/A self __public_id public_id N/A getPublicId N/A N/A self N/A N/A N/A Returns the public identifier of this InputSource. N/A N/A self __public_id N/A setSystemId N/A N/A self system_id N/A N/A N/A Sets the system identifier of this InputSource. N/A N/A self __system_id system_id N/A getSystemId N/A N/A self N/A N/A N/A Returns the system identifier of this InputSource. N/A N/A self __system_id N/A setEncoding N/A N/A self encoding N/A N/A N/A Sets the character encoding of this InputSource.

        The encoding must be a string acceptable for an XML encoding
        declaration (see section 4.3.3 of the XML recommendation).

        The encoding attribute of the InputSource is ignored if the
        InputSource also contains a character stream. N/A N/A self __encoding encoding N/A getEncoding N/A N/A self N/A N/A N/A Get the character encoding of this InputSource. N/A N/A self __encoding N/A setByteStream N/A N/A self bytefile N/A N/A N/A Set the byte stream (a Python file-like object which does
        not perform byte-to-character conversion) for this input
        source.

        The SAX parser will ignore this if there is also a character
        stream specified, but it will use a byte stream in preference
        to opening a URI connection itself.

        If the application knows the character encoding of the byte
        stream, it should set it with the setEncoding method. N/A N/A self __bytefile bytefile N/A getByteStream N/A N/A self N/A N/A N/A Get the byte stream for this input source.

        The getEncoding method will return the character encoding for
        this byte stream, or None if unknown. N/A N/A self __bytefile N/A setCharacterStream N/A N/A self charfile N/A N/A N/A Set the character stream for this input source. (The stream
        must be a Python 2.0 Unicode-wrapped file-like that performs
        conversion to Unicode strings.)

        If there is a character stream specified, the SAX parser will
        ignore any byte stream and will not attempt to open a URI
        connection to the system identifier. N/A N/A self __charfile charfile N/A getCharacterStream N/A N/A self N/A N/A N/A Get the character stream for this input source. N/A N/A self __charfile N/A N/A AttributesImpl N/A N/A __init__ N/A N/A self attrs N/A N/A N/A Non-NS-aware implementation.

        attrs should be of the form {name : value}. N/A N/A self _attrs attrs N/A getLength N/A N/A self N/A N/A N/A N/A len N/A self _attrs N/A getType N/A N/A self name N/A N/A N/A CDATA N/A getValue N/A N/A self name N/A N/A N/A N/A N/A self _attrs N/A name N/A getValueByQName N/A N/A self name N/A N/A N/A N/A N/A self _attrs N/A name N/A getNameByQName N/A N/A self name N/A N/A N/A N/A N/A name N/A self _attrs N/A N/A KeyError name N/A name N/A getQNameByName N/A N/A self name N/A N/A N/A N/A N/A name N/A self _attrs N/A N/A KeyError name N/A name N/A getNames N/A N/A self N/A N/A N/A N/A N/A N/A self _attrs keys N/A getQNames N/A N/A self N/A N/A N/A N/A N/A N/A self _attrs keys N/A __len__ N/A N/A self N/A N/A N/A N/A len N/A self _attrs N/A __getitem__ N/A N/A self name N/A N/A N/A N/A N/A self _attrs N/A name N/A keys N/A N/A self N/A N/A N/A N/A N/A N/A self _attrs keys N/A has_key N/A N/A self name N/A N/A N/A N/A name N/A self _attrs N/A __contains__ N/A N/A self name N/A N/A N/A N/A name N/A self _attrs N/A get N/A N/A self name alternative N/A None N/A N/A N/A N/A N/A self _attrs get name alternative N/A copy N/A N/A self N/A N/A N/A N/A N/A self __class__ N/A self _attrs N/A items N/A N/A self N/A N/A N/A N/A N/A N/A self _attrs items N/A values N/A N/A self N/A N/A N/A N/A N/A N/A self _attrs values N/A N/A AttributesNSImpl N/A AttributesImpl N/A __init__ N/A N/A self attrs qnames N/A N/A N/A NS-aware implementation.

        attrs should be of the form {(ns_uri, lname): value, ...}.
        qnames of the form {(ns_uri, lname): qname, ...}. N/A N/A self _attrs attrs N/A N/A self _qnames qnames N/A getValueByQName N/A N/A self name N/A N/A N/A N/A nsname qname N/A N/A N/A self _qnames items N/A N/A N/A qname name N/A N/A N/A N/A self _attrs N/A nsname N/A KeyError name N/A getNameByQName N/A N/A self name N/A N/A N/A N/A nsname qname N/A N/A N/A self _qnames items N/A N/A N/A qname name N/A N/A nsname N/A KeyError name N/A getQNameByName N/A N/A self name N/A N/A N/A N/A N/A self _qnames N/A name N/A getQNames N/A N/A self N/A N/A N/A N/A N/A N/A self _qnames values N/A copy N/A N/A self N/A N/A N/A N/A N/A self __class__ N/A self _attrs N/A self _qnames N/A N/A _test N/A N/A N/A N/A N/A N/A XMLReader N/A N/A IncrementalParser N/A N/A Locator N/A N/A N/A __name__ __main__ N/A N/A N/A _test