£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>

Rec           @` s   d  d l  m Z m Z m Z d  d l m Z d  d l Z d  d l m Z d d l m	 Z	 d d l m
 Z
 d d	 l m Z d d
 l m Z d d l m Z e j d  Z e d  Z e e  Z d S(   i    (   t   absolute_importt   divisiont   unicode_literals(   t	   text_typeN(   t   copyi   (   t   basei   (   t	   _ihatexml(   t	   constants(   t
   namespaces(   t   moduleFactoryFactoryu   {([^}]*)}(.*)c      
   ` s     j  d  j  d t j f  f d     Y d  f  f d     Y  d  f  f d     Y d  f  f d	     Y d
  f  f d     Y  f d   	   f d   } d t j f         	 f d     Y} t   S(   Nu   asdt   Elementc           ` s   e  Z d   f d   Z d   Z d   Z d   Z e e e  Z d   Z	 d   Z
 e e
 e	  Z d   Z d   Z e e e  Z d   Z d	   Z e e e  Z d
   Z d   Z d   Z d   Z d d  Z d   Z d   Z RS(   c         ` s   | |  _  | |  _   j |  j | |   |  _ | d  k rU t d |  j  f |  _ n |  j |  j  f |  _ d  |  _ g  |  _	 g  |  _
 d  S(   Nu   html(   t   _namet
   _namespaceR
   t   _getETreeTagt   _elementt   NoneR   t	   nameTuplet   parentt   _childNodest   _flags(   t   selft   namet	   namespace(   t   ElementTree(    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/etree.pyt   __init__   s    				c         S` s)   | d  k r | } n d | | f } | S(   Nu   {%s}%s(   R   (   R   R   R   t	   etree_tag(    (    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/etree.pyR   %   s    	c         S` s+   | |  _  |  j |  j  |  j  |  j _ d  S(   N(   R   R   R   R   t   tag(   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/etree.pyt   _setName,   s    	c         S` s   |  j  S(   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/etree.pyt   _getName0   s    c         S` s+   | |  _  |  j |  j |  j   |  j _ d  S(   N(   R   R   R   R   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/etree.pyt   _setNamespace5   s    	c         S` s   |  j  S(   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/etree.pyt   _getNamespace9   s    c         S` s
   |  j  j S(   N(   R   t   attrib(   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/etree.pyt   _getAttributes>   s    c         S` sz   |  j  j } | j   | rv xW | j   D]F \ } } t | t  r_ d | d | d f } n | } | | | <q) Wn  d  S(   Nu   {%s}%si   i   (   R   R   t   cleart   itemst
   isinstancet   tuple(   R   t
   attributest	   el_attribt   keyt   valueR   (    (    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/etree.pyt   _setAttributesA   s    
c         S` s   |  j  S(   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/etree.pyt   _getChildNodesP   s    c         S` s2   |  j  2g  |  _ x | D] } |  j |  q Wd  S(   N(   R   R   t   insertChild(   R   R(   t   element(    (    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/etree.pyt   _setChildNodesS   s    	c         S` s   t  |  j j p t |  j   S(   u,   Return true if the node has children or text(   t   boolR   t   textt   len(   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/etree.pyt
   hasContent[   s    c         S` s0   |  j  j |  |  j j | j  |  | _ d  S(   N(   R   t   appendR   R   (   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/etree.pyt   appendChild_   s    c         S` s>   t  |  j  j | j  } |  j j | | j  |  | _ d  S(   N(   t   listR   t   indext   insertR   (   R   R3   t   refNodeR6   (    (    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/etree.pyt   insertBefored   s    c         S` s0   |  j  j |  |  j j | j  d  | _ d  S(   N(   R   t   removeR   R   R   (   R   R3   (    (    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/etree.pyt   removeChildi   s    c         S` s-  t  |  j  s? |  j j s* d |  j _ n  |  j j | 7_ n | d  k r |  j d j sn d |  j d _ n  |  j d j | 7_ n t |  j  } | j | j  } | d k r |  j | d j s d |  j | d _ n  |  j | d j | 7_ n- |  j j sd |  j _ n  |  j j | 7_ d  S(   Nu    ii    i   (   R0   R   R/   R   t   tailR5   R6   (   R   t   dataR9   t   childrenR6   (    (    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/etree.pyt
   insertTextn   s"    c         S` sF   t  |   |  j |  j  } |  j j rB t |  j j  | j _ n  | S(   N(   t   typeR   R   R   R   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/etree.pyt	   cloneNode   s    c         S` s   | j  r+ | j  d j j |  j j 7_ nH | j j sF d | j _ n  |  j j d  k	 rs | j j |  j j 7_ n  d |  j _ t j j |  |  d  S(   Niu    (   t
   childNodesR   R<   R/   R   R   t   Nodet   reparentChildren(   R   t	   newParent(    (    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/etree.pyRD      s    	"N(   t   __name__t
   __module__R   R   R   R   R   t   propertyR   R   R   R   R    R)   R%   R*   R-   RB   R1   R4   R9   R;   R?   RA   RD   (    (   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/etree.pyR
      s*   														t   Commentc           ` s8   e  Z   f d    Z d   Z d   Z e e e  Z RS(   c         ` s1     j  |  |  _ d  |  _ g  |  _ g  |  _ d  S(   N(   RI   R   R   R   R   R   (   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/etree.pyR      s    		c         S` s
   |  j  j S(   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/etree.pyt   _getData   s    c         S` s   | |  j  _ d  S(   N(   R   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/etree.pyt   _setData   s    (   RF   RG   R   RJ   RK   RH   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/etree.pyRI      s   		t   DocumentTypec           ` sY   e  Z   f d    Z d   Z d   Z e e e  Z d   Z d   Z e e e  Z	 RS(   c         ` s2     j  |  d  | |  j _ | |  _ | |  _ d  S(   Nu
   <!DOCTYPE>(   R   R   R/   t   publicIdt   systemId(   R   R   RM   RN   (   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/etree.pyR      s    	c         S` s   |  j  j d d  S(   Nu   publicIdu    (   R   t   get(   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/etree.pyt   _getPublicId   s    c         S` s&   | d  k	 r" |  j j d |  n  d  S(   Nu   publicId(   R   R   t   set(   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/etree.pyt   _setPublicId   s    c         S` s   |  j  j d d  S(   Nu   systemIdu    (   R   RO   (   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/etree.pyt   _getSystemId   s    c         S` s&   | d  k	 r" |  j j d |  n  d  S(   Nu   systemId(   R   R   RQ   (   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/etree.pyt   _setSystemId   s    (
   RF   RG   R   RP   RR   RH   RM   RS   RT   RN   (    (   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/etree.pyRL      s   				t   Documentc           ` s   e  Z   f d    Z RS(   c         ` s     j  |  d  d  S(   Nu   DOCUMENT_ROOT(   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/etree.pyR      s    (   RF   RG   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/etree.pyRU      s   t   DocumentFragmentc           ` s   e  Z   f d    Z RS(   c         ` s     j  |  d  d  S(   Nu   DOCUMENT_FRAGMENT(   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/etree.pyR      s    (   RF   RG   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/etree.pyRV      s   c         ` s8   g    d     f d    |  d  d j     S(   Ni    c         ` s  t  |  d  s |  j   }  n  |  j d k r |  j d  sK |  j d  r |  j d  p] d } |  j d  pr d }  j d |  j | | f  q0 j d |  j f  n|  j d k rM j d	  |  j d  k	 r  j d
 d | d |  j f  n  |  j d  k	 rt d   n  t  |  d  r0t	 |  j
  r0t d   q0n|  j   k r} j d d | |  j f  nt |  j t  st d t |  j  |  j f   t j |  j  } | d  k r|  j } n/ | j   \ } } t j | } d | | f }  j d d | | f  t  |  d  rg  } x |  j
 j   D]r \ } }	 t j |  } | d  k	 r| j   \ } } t j | } d | | f }
 n | }
 | j |
 |	 f  qJWx? t |  D]. \ } }	  j d d | d | |	 f  qWn  |  j r0 j d
 d | d |  j f  n  | d 7} x |  D] }  | |  qAW|  j r j d
 d | d |  j f  n  d  S(   Nu   tagu
   <!DOCTYPE>u   publicIdu   systemIdu    u   <!DOCTYPE %s "%s" "%s">u   <!DOCTYPE %s>u   DOCUMENT_ROOTu	   #documentu   |%s"%s"u    i   u   Document node cannot have tailu   attribu$   Document node cannot have attributesu   |%s<!-- %s -->u   Expected unicode, got %s, %su   %s %su   |%s<%s>u
   |%s%s="%s"(   t   hasattrt   getrootR   RO   R2   R/   R   R<   t	   TypeErrorR0   R   R#   R   t   AssertionErrorR@   t
   tag_regexpt   matcht   groupsR   t   prefixesR"   t   sorted(   R,   t   indentRM   RN   t   nsmatchR   t   nst   prefixR%   R(   t   attr_stringt   child(   t   ElementTreeCommentTypet   rvt   serializeElement(    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/etree.pyRh      s^    	%!)	%
	u   
(   t   join(   R,   (   Rf   (   Rg   Rh   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/etree.pyt   testSerializer   s    7c         ` sD   g   t  j           f d     |   d j   S(   u4   Serialize an element and its child nodes to a stringc         ` sm  t  |    j  r! |  j   }  n  |  j d k r |  j d  sN |  j d  r |  j d  p` d } |  j d  pu d }  j d |  j | | f  qM j d |  j f  n|  j d k rL|  j d  k	 r  j |  j  n  |  j d  k	 rt	 d   n  t
 |  d	  r.t |  j  r.t	 d
   n  x|  D] }  |  q5Wn|  j  k ru j d |  j f  n |  j s j d  j |  j  f  n^ d j g  |  j j   D]% \ } } d  j |  | f ^ q }  j d |  j | f  |  j r j |  j  n  x |  D] }  |  q"W j d |  j f  |  j ri j |  j  n  d  S(   Nu
   <!DOCTYPE>u   publicIdu   systemIdu    u   <!DOCTYPE %s PUBLIC "%s" "%s">u   <!DOCTYPE %s>u   DOCUMENT_ROOTu   Document node cannot have tailu   attribu$   Document node cannot have attributesu	   <!--%s-->u   <%s>u    u   %s="%s"u   <%s %s>u   </%s>(   R#   R   RX   R   RO   R2   R/   R   R<   RY   RW   R0   R   t   fromXmlNameRi   R"   (   R,   RM   RN   Re   R   R(   t   attr(   R   Rf   t   filterRg   Rh   (    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/etree.pyRh     s@    		#	;		u    (   R   t   InfosetFilterRi   (   R,   (   R   Rf   (   Rm   Rg   Rh   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/etree.pyt   tostring  s
    -
t   TreeBuilderc           ` sS   e  Z  Z  Z  Z   Z  Z  Z  f d    Z  f d   Z	 d   Z
 RS(   c         ` s
     |  S(   N(    (   R   R,   (   Rj   (    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/etree.pyRj   D  s    c         ` sP     r |  j  j S|  j d  k	 r9 |  j  j j d |  j  S|  j  j j d  Sd  S(   Nu   {%s}htmlu   html(   t   documentR   t   defaultNamespaceR   t   find(   R   (   t   fullTree(    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/etree.pyt   getDocumentG  s    
c         S` s   t  j j |   j S(   N(   R   Rp   t   getFragmentR   (   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/etree.pyRv   Q  s    (   RF   RG   t   documentClasst   doctypeClasst   elementClasst   commentClasst   fragmentClasst   implementationRj   Ru   Rv   (    (   RI   RU   RV   RL   R
   t   ElementTreeImplementationRt   Rj   (    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/etree.pyRp   <  s   
(   RI   R   R   RC   Rp   t   locals(   R}   Rt   Ro   Rp   (    (
   RI   RU   RV   RL   R
   R   Rf   R}   Rt   Rj   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/etree.pyt   getETreeBuilder   s    >64(   t
   __future__R    R   R   t   pip._vendor.sixR   t   reR   t    R   R   R   R   t   _utilsR	   t   compileR[   t   FalseR   t   getETreeModule(    (    (    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/etree.pyt   <module>   s    E