Hacked By AnonymousFox

Current Path : /proc/thread-self/root/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/
Upload File :
Current File : //proc/thread-self/root/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyc

�
�Rec@`s�ddlmZmZmZyddlmZWn!ek
rSddlmZnXddlm	Z	m
Z
ddlZddlm
Z
ddlmZdd	lmZdd
lmZd�Zee�ZdS(i(tabsolute_importtdivisiontunicode_literals(tMutableMapping(tminidomtNodeNi(tbasei(t	constants(t
namespaces(tmoduleFactoryFactoryc`sv��dtfd��Y�dtjf��fd��Y�dtjf����fd��Y}d��t�S(NtAttrListcB`sPeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(cS`s
||_dS(N(telement(tselfR((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/dom.pyt__init__scS`st|jjj��S(N(titerRt
attributestkeys(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/dom.pyt__iter__scS`sJt|t�rt�n.|jjj|�}||_||jj|<dS(N(t
isinstancettupletNotImplementedErrorRt
ownerDocumenttcreateAttributetvalueR(RtnameRtattr((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/dom.pyt__setitem__s
		cS`st|jj�S(N(tlenRR(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/dom.pyt__len__#scS`st|jjj��S(N(tlistRRtitems(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/dom.pyR&scS`st|jjj��S(N(RRRtvalues(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/dom.pyR)scS`s-t|t�rt�n|jj|jSdS(N(RRRRRR(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/dom.pyt__getitem__,s	cS`s)t|t�rt�n
|jj|=dS(N(RRRRR(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/dom.pyt__delitem__2s	(
t__name__t
__module__R
RRRRRR 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/dom.pyR
s							tNodeBuilderc`s�eZd�Zed��Zd�Zdd�Zd�Zd�Z	d�Z
�fd�Zd�Zeee�Z
�fd	�Zd
�Zd�Zee�ZRS(
cS`s#tjj||j�||_dS(N(RRR
tnodeNameR(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/dom.pyR
9scS`s"t|jd�r|jjp!dS(NunamespaceURI(thasattrRtnamespaceURItNone(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/dom.pyt<lambda>=scS`s ||_|jj|j�dS(N(tparentRtappendChild(Rtnode((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/dom.pyR+@s	cS`sH|jjj|�}|r4|jj||j�n|jj|�dS(N(RRtcreateTextNodetinsertBeforeR+(RtdataR.ttext((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/dom.pyt
insertTextDscS`s&|jj|j|j�||_dS(N(RR.R*(RR,trefNode((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/dom.pyR.KscS`s8|jj|jkr+|jj|j�nd|_dS(N(Rt
parentNodetremoveChildR(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/dom.pyR4OscS`sOx?|jj�rA|jj}|jj|�|jj|�qWg|_dS(N(Rt
hasChildNodest
firstChildR4R+t
childNodes(Rt	newParenttchild((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/dom.pytreparentChildrenTs
c`s
�|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/dom.pyt
getAttributes[scS`s�|r�x�t|j��D]~\}}t|t�r�|ddk	r]|dd|d}n
|d}|jj|d||�q|jj||�qWndS(Niu:ii(RRRRR(RtsetAttributeNStsetAttribute(RRRRt
qualifiedName((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/dom.pyt
setAttributes^s

	c`s�|jjt��S(N(Rt	cloneNodetFalse(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/dom.pyR@mscS`s
|jj�S(N(RR5(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/dom.pyt
hasContentpscS`s4|jdkr td|jfS|j|jfSdS(Nuhtml(t	namespaceR(RR(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/dom.pytgetNameTuplessN(R"R#R
tpropertyRCR+R(R1R.R4R:R;R?RR@RBRDt	nameTuple((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/dom.pyR$8s						
		tTreeBuilderc`s�eZ�fd�Z��fd�Zd
�fd�Z�fd�Z�fd�Zd�Z�fd�Z	d�Z
d�Zd
d	�Z�Z
d
ZRS(c`s+�j�jddd�|_tj|�S(N(tgetDOMImplementationtcreateDocumentR(tdomtweakreftproxy(R(tDom(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/dom.pyt
documentClass|sc`st|d}|d}|d}�j�}|j|||�}|jj�|���tkrp|j|_ndS(NunameupublicIdusystemId(RHtcreateDocumentTypetdocumentR+RRJR(RttokenRtpublicIdtsystemIdtdomimpltdoctype(RMR$(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/dom.pyt
insertDoctype�s


c`sO|dkr0|jdkr0|jj|�}n|jj||�}�|�S(N(R(tdefaultNamespaceRJt
createElementtcreateElementNS(RRRCR,(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/dom.pytelementClass�sc`s�|jj|��S(N(RJt
createComment(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/dom.pytcommentClass�sc`s�|jj��S(N(RJtcreateDocumentFragment(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/dom.pyt
fragmentClass�scS`s|jj|j�dS(N(RJR+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/dom.pyR+�sc`s
�|�S(N((RR(ttestSerializer(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/dom.pyR_�scS`s|jS(N(RJ(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/dom.pytgetDocument�scS`stjj|�jS(N(RRGtgetFragmentR(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/dom.pyRa�scS`s�|}||kr+tjj|||�nwt|jd�r�tj|jjkr�t|jj�|j_|jjj	tj�q�n|jj
|jj|��dS(Nu_child_node_types(RRGR1R&RJRt	TEXT_NODEt_child_node_typesRtappendR+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/dom.pyR1�sN(R"R#RNRVR(RZR\R^R+R_R`RaR1timplementationR((RMtDomImplementationR$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/dom.pyRG{s			
c`s?|j�g�d��fd���|d�dj��S(Nic`s�|jtjkr�|jr�|js-|jrr|jp9d}|jpHd}�jdd||j||f�q��jdd||jf�q��jdd|f�n�|jtjkr��jd�n�|jtjkr��jd�n�|jtj	kr%�jdd||j
f�nu|jtjkrX�jd	d||j
f�nBt|d
�r�|j
dk	r�dtj|j
|jf}n	|j}�jdd||f�|j�r�g}x�tt|j��D]r}|jj|�}|j}|j}|j
}	|	r8dtj|	|jf}n	|j}|j||f�q�Wx?t|�D].\}}�jd
d|d||f�qeWn|d7}x|jD]}
�|
|�q�WdS(Nuu|%s<!DOCTYPE %s "%s" "%s">u u|%s<!DOCTYPE %s>u|%s<!DOCTYPE >u	#documentu#document-fragmentu|%s<!-- %s -->u|%s"%s"unamespaceURIu%s %su|%s<%s>u
|%s%s="%s"i(tnodeTypeRtDOCUMENT_TYPE_NODERRRRSRdt
DOCUMENT_NODEtDOCUMENT_FRAGMENT_NODEtCOMMENT_NODEt	nodeValueRbR&R'R(RtprefixesR%t
hasAttributestrangeRRtitemRt	localNametsortedR7(RtindentRRRSRRtiRRtnsR9(trvtserializeElement(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/dom.pyRw�sN		!!!					)
u
(t	normalizetjoin(R((RvRws�/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/dom.pyR_�s

.
(RRRRGtlocals(RfRG((R
RMRfR$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/dom.pyt
getDomBuilders$"C(:	6(t
__future__RRRtcollections.abcRtImportErrortcollectionstxml.domRRRKtRRRt_utilsR	R{tgetDomModule(((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/dom.pyt<module>s
	�

Hacked By AnonymousFox1.0, Coded By AnonymousFox