Module ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body AugAssignAdd AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assert CompareEq AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num decorator_list decorator_list
N/A xml.parsers expat XmlParser N/A object N/A N/A 
    Very, very basic nonvalidating-in-the-slightest parser built around expat.
    Designed to be derived from, with subclasses defining newElement() and
    finishElement(), or both. Elements get an integer key associated with them
    which is used to track parent/child relationships in case it's needed.

    Example:

        class MyParser(XmlParser):

            def newElement(self, parent, this, name, attrs):
                self.elements[this] = name

            def finishElement(self, parent, this, name, attrs, data):
                print "found element", name, "child of", self.elements[parent]
     __init__ N/A N/A self s N/A N/A N/A N/A self currentData N/A N/A self currentName None N/A N/A self currentAttrs None N/A N/A self elementStack N/A N/A N/A self currentKey None N/A N/A self lastKey 0 N/A N/A self p N/A N/A expat ParserCreate N/A N/A N/A self p StartElementHandler N/A self StartElementHandler N/A N/A N/A self p EndElementHandler N/A self EndElementHandler N/A N/A N/A self p CharacterDataHandler N/A self CharacterDataHandler N/A parse N/A N/A self s N/A N/A N/A N/A N/A N/A self p Parse s N/A newElement N/A N/A self parentElement thisElement thisName thisAttrs N/A N/A N/A N/A finishElement N/A N/A self parentElement thisElement thisName thisAttrs thisData N/A N/A N/A N/A CharacterDataHandler N/A N/A self data N/A N/A N/A N/A self currentData data N/A EndElementHandler N/A N/A self name N/A N/A N/A N/A N/A self currentName name N/A N/A N/A self finishElement N/A N/A N/A self elementStack N/A -1 N/A 0 N/A self currentKey N/A self currentName N/A self currentAttrs N/A self currentData N/A N/A N/A self currentKey N/A self currentName N/A self currentAttrs N/A self currentData N/A N/A N/A self elementStack pop N/A StartElementHandler N/A N/A self name attrs N/A N/A N/A N/A N/A N/A self elementStack append N/A N/A self currentKey N/A self currentName N/A self currentAttrs N/A self currentData N/A N/A self currentName name N/A N/A self currentAttrs attrs N/A N/A self currentData N/A N/A N/A self newElement N/A self currentKey N/A self lastKey name attrs N/A N/A self currentKey N/A self lastKey N/A N/A self lastKey 1 N/A N/A