Module Expr Str ImportFrom alias alias alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str Str Str Str Str Str Assign NameStore Dict FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareNotIn NameLoad NameLoad body If CompareEq NameLoad Str body ImportFrom alias Assign SubscriptStore NameLoad Index NameLoad AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body ImportFrom alias Assign SubscriptStore NameLoad Index NameLoad AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body ImportFrom alias Assign SubscriptStore NameLoad Index NameLoad AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body ImportFrom alias If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Return AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If CompareIn NameLoad TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str orelse If NameLoad body Expr Yield Dict Str Str Str Call AttributeLoad Str attr NameLoad Assign NameStore ListLoad Expr Yield NameLoad If NameLoad body Expr Yield Dict Str Str Str Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Num For NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If CompareIn NameLoad TupleLoad Str Str body If BoolOpAnd SubscriptLoad NameLoad Index Str CompareNotEq SubscriptLoad NameLoad Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str body If CompareIn SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Str orelse Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Str orelse Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad BinOpMult Str NameLoad NameLoad AugAssignAdd NameStore Num Assign NameStore SubscriptLoad NameLoad Index Str For TupleStore TupleStore NameStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr body If NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Assign NameStore NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad BinOpMult Str NameLoad NameLoad NameLoad If CompareEq NameLoad Str body AugAssignSub NameStore Num orelse If CompareEq NameLoad Str body AugAssignSub NameStore Num orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad BinOpMult Str NameLoad SubscriptLoad NameLoad Index Str orelse If CompareEq NameLoad Str body If SubscriptLoad NameLoad Index Str body If SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad BinOpMult Str NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str IfExp SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Str orelse If SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad BinOpMult Str NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad BinOpMult Str NameLoad SubscriptLoad NameLoad Index Str orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad BinOpMult Str NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad BinOpMult Str NameLoad SubscriptLoad NameLoad Index Str orelse If CompareEq NameLoad Str body Assert NameLoad Str orelse Raise Call NameLoad BinOpMod Str NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list
N/A N/A A collection of modules for iterating through different kinds of
tree, generating tokens identical to those produced by the tokenizer
module.

To create a tree walker for a new type of tree, you need to do
implement a tree walker object (called TreeWalker by convention) that
implements a 'serialize' method taking a tree as sole argument and
returning an iterator generating tokens.
 __future__ absolute_import division unicode_literals N/A constants utils default_etree N/A __all__ N/A getTreeWalker pprint dom etree genshistream lxmletree N/A treeWalkerCache N/A getTreeWalker N/A N/A treeType implementation N/A None kwargs N/A N/A Get a TreeWalker class for various types of tree with built-in support

    Args:
        treeType (str): the name of the tree type required (case-insensitive).
            Supported values are:

            - "dom": The xml.dom.minidom DOM implementation
            - "etree": A generic walker for tree implementations exposing an
                       elementtree-like interface (known to work with
                       ElementTree, cElementTree and lxml.etree).
            - "lxml": Optimized walker for lxml.etree
            - "genshi": a Genshi stream

        Implementation: A module implementing the tree type e.g.
            xml.etree.ElementTree or cElementTree (Currently applies to the
            "etree" tree type only).
     N/A treeType N/A N/A treeType lower N/A N/A treeType treeWalkerCache N/A N/A N/A treeType dom N/A N/A dom N/A N/A treeWalkerCache N/A treeType N/A dom TreeWalker N/A N/A N/A treeType genshi N/A N/A genshistream N/A N/A treeWalkerCache N/A treeType N/A genshistream TreeWalker N/A N/A N/A treeType lxml N/A N/A lxmletree N/A N/A treeWalkerCache N/A treeType N/A lxmletree TreeWalker N/A N/A N/A treeType etree N/A N/A etree N/A N/A implementation None N/A N/A implementation default_etree N/A N/A N/A N/A etree getETreeModule implementation kwargs TreeWalker N/A N/A N/A treeWalkerCache get treeType N/A concatenateCharacterTokens N/A N/A tokens N/A N/A N/A pendingCharacters N/A N/A token tokens N/A N/A type N/A token N/A type N/A N/A type N/A Characters SpaceCharacters N/A N/A N/A N/A pendingCharacters append N/A token N/A data N/A N/A pendingCharacters N/A N/A N/A N/A type data Characters N/A N/A join pendingCharacters N/A pendingCharacters N/A N/A N/A token N/A pendingCharacters N/A N/A N/A N/A type data Characters N/A N/A join pendingCharacters N/A pprint N/A N/A walker N/A N/A N/A Pretty printer for tree walkers N/A output N/A N/A indent 0 N/A token N/A concatenateCharacterTokens walker N/A N/A type N/A token N/A type N/A N/A type N/A StartTag EmptyTag N/A N/A N/A N/A token N/A namespace N/A N/A token N/A namespace N/A N/A constants namespaces N/A html N/A N/A N/A N/A token N/A namespace N/A constants prefixes N/A N/A ns N/A N/A constants prefixes N/A N/A token N/A namespace N/A N/A ns N/A token N/A namespace N/A name N/A %s %s N/A ns N/A token N/A name N/A N/A name N/A token N/A name N/A N/A N/A output append N/A %s<%s> N/A N/A indent name N/A indent 2 N/A attrs N/A token N/A data N/A N/A N/A namespace localname value N/A sorted N/A N/A attrs items N/A N/A namespace N/A N/A N/A namespace N/A constants prefixes N/A N/A ns N/A N/A constants prefixes N/A namespace N/A N/A ns namespace N/A name N/A %s %s N/A ns localname N/A N/A name localname N/A N/A N/A output append N/A %s%s="%s" N/A N/A indent name value N/A N/A type EmptyTag N/A N/A indent 2 N/A N/A N/A type EndTag N/A N/A indent 2 N/A N/A N/A type Comment N/A N/A N/A N/A output append N/A %s<!-- %s --> N/A N/A indent N/A token N/A data N/A N/A N/A type Doctype N/A N/A N/A token N/A name N/A N/A N/A token N/A publicId N/A N/A N/A N/A output append N/A %s<!DOCTYPE %s "%s" "%s"> N/A N/A indent N/A token N/A name N/A token N/A publicId N/A N/A token N/A systemId N/A token N/A systemId N/A N/A N/A token N/A systemId N/A N/A N/A N/A output append N/A %s<!DOCTYPE %s "" "%s"> N/A N/A indent N/A token N/A name N/A token N/A systemId N/A N/A N/A N/A output append N/A %s<!DOCTYPE %s> N/A N/A indent N/A token N/A name N/A N/A N/A N/A output append N/A %s<!DOCTYPE > N/A N/A indent N/A N/A N/A type Characters N/A N/A N/A N/A output append N/A %s"%s" N/A N/A indent N/A token N/A data N/A N/A N/A type SpaceCharacters N/A N/A False concatenateCharacterTokens should have got rid of all Space tokens N/A N/A N/A ValueError N/A Unknown token type, %s type N/A N/A N/A join output N/A