ok
Direktori : /usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/ |
Current File : //usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/base.pyo |
� ��abc @` sh d d l m Z m Z m Z d d l m Z d d l m Z m Z m Z d Z i e e � e f d 6e e e e d d f g � B� e f d 6e e e e d d f e d d f g � B� e f d 6e e d d f e d d f g � e f d 6e e d d f e d d f g � e f d 6Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( i ( t absolute_importt divisiont unicode_literals( t text_typei ( t scopingElementst tableInsertModeElementst namespacesu htmlu buttonu olu ulu listu tableu optgroupu optionu selectt Nodec B` se e Z d � Z d � Z d � Z d � Z d d � Z d � Z d � Z d � Z d � Z d � Z RS( c C` s: | | _ d | _ d | _ i | _ g | _ g | _ d S( u6 Node representing an item in the tree. name - The tag name associated with the node parent - The parent of the current node (or None for the document node) value - The value of the current node (applies to text nodes and comments attributes - a dict holding name, value pairs for attributes of the node childNodes - a list of child nodes of the current node. This must include all elements but not necessarily other node types _flags - A list of miscellaneous flags that can be set on the node N( t namet Nonet parentt valuet attributest childNodest _flags( t selfR ( ( sJ /usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/base.pyt __init__ s c C` sa d j g | j j � D] \ } } d | | f ^ q � } | rR d | j | f Sd | j Sd S( Nu u %s="%s"u <%s %s>u <%s>( t joinR t itemsR ( R R R t attributesStr( ( sJ /usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/base.pyt __str__* s 2c C` s d | j S( Nu <%s>( R ( R ( ( sJ /usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/base.pyt __repr__3 s c C` s t � d S( u3 Insert node as a child of the current node N( t NotImplementedError( R t node( ( sJ /usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/base.pyt appendChild6 s c C` s t � d S( u� Insert data as text in the current node, positioned before the start of node insertBefore or to the end of the node's text. N( R ( R t datat insertBefore( ( sJ /usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/base.pyt insertText; s c C` s t � d S( u� Insert node as a child of the current node, before refNode in the list of child nodes. Raises ValueError if refNode is not a child of the current nodeN( R ( R R t refNode( ( sJ /usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/base.pyR A s c C` s t � d S( u: Remove node from the children of the current node N( R ( R R ( ( sJ /usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/base.pyt removeChildG s c C` s. x | j D] } | j | � q Wg | _ d S( u� Move all the children of the current node to newParent. This is needed so that trees that don't store text as nodes move the text in the correct way N( R R ( R t newParentt child( ( sJ /usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/base.pyt reparentChildrenL s c C` s t � d S( u� Return a shallow copy of the current node i.e. a node with the same name and attributes but with no parent or child nodes N( R ( R ( ( sJ /usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/base.pyt cloneNodeV s c C` s t � d S( uF Return true if the node has children or text, false otherwise N( R ( R ( ( sJ /usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/base.pyt hasContent\ s N( t __name__t __module__R R R R R R R R R R! R"