Hacked By AnonymousFox
�
�Rec @` s\ 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 d d f h B� e
f d 6e e e d d f e d d f h 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` sk e Z d Z d � Z d � Z d � Z d � Z d d � Z d � Z d � Z
d � Z d � Z d
� Z
RS( u Represents an item in the treec C` s: | | _ d | _ d | _ i | _ g | _ g | _ d S( uR Creates a Node
:arg name: The tag name associated with the node
N( t namet Nonet parentt valuet
attributest
childNodest _flags( t selfR ( ( s� /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/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( ( s� /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/base.pyt __str__- s
2c C` s d | j S( Nu <%s>( R ( R ( ( s� /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/base.pyt __repr__6 s c C` s
t � d S( u[ Insert node as a child of the current node
:arg node: the node to insert
N( t NotImplementedError( R t node( ( s� /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/base.pyt appendChild9 s c C` s
t � d S( uB Insert data as text in the current node, positioned before the
start of node insertBefore or to the end of the node's text.
:arg data: the data to insert
:arg insertBefore: True if you want to insert the text before the node
and False if you want to insert it after the node
N( R ( R t datat insertBefore( ( s� /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/base.pyt
insertTextA 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 node
:arg node: the node to insert
:arg refNode: the child node to insert the node before
N( R ( R R t refNode( ( s� /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/base.pyR M s
c C` s
t � d S( uh Remove node from the children of the current node
:arg node: the child node to remove
N( R ( R R ( ( s� /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/base.pyt removeChildY 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
:arg newParent: the node to move all this node's children to
N( R
R ( R t newParentt child( ( s� /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/base.pyt reparentChildrena 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 ( ( s� /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/base.pyt cloneNoden s c C` s
t � d S( uF Return true if the node has children or text, false otherwise
N( R ( R ( ( s� /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/base.pyt
hasContentt s N( t __name__t
__module__t __doc__R R R R R R R R R R! R"