ok

Mini Shell

Direktori : /opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/
Upload File :
Current File : //opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyo

�
Bu�_c@`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((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyt__init__scS`st|jjj��S(N(titerRt
attributestkeys(R((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyt__iter__scS`sJt|t�rt�n.|jjj|�}||_||jj|<dS(N(t
isinstancettupletNotImplementedErrorRt
ownerDocumenttcreateAttributetvalueR(RtnameRtattr((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyt__setitem__s
		cS`st|jj�S(N(tlenRR(R((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyt__len__#scS`st|jjj��S(N(tlistRRtitems(R((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyR&scS`st|jjj��S(N(RRRtvalues(R((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyR)scS`s-t|t�rt�n|jj|jSdS(N(RRRRRR(RR((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyt__getitem__,s	cS`s)t|t�rt�n
|jj|=dS(N(RRRRR(RR((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyt__delitem__2s	(
t__name__t
__module__R
RRRRRR R!(((sV/opt/alt/python36/lib/python3.6/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((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyR
9scS`s"t|jd�r|jjp!dS(NunamespaceURI(thasattrRtnamespaceURItNone(R((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyt<lambda>=scS`s ||_|jj|j�dS(N(tparentRtappendChild(Rtnode((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyR+@s	cS`sH|jjj|�}|r4|jj||j�n|jj|�dS(N(RRtcreateTextNodetinsertBeforeR+(RtdataR.ttext((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyt
insertTextDscS`s&|jj|j|j�||_dS(N(RR.R*(RR,trefNode((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyR.KscS`s8|jj|jkr+|jj|j�nd|_dS(N(Rt
parentNodetremoveChildR(R*(RR,((sV/opt/alt/python36/lib/python3.6/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((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pytreparentChildrenTs
c`s
�|j�S(N(R(R(R
(sV/opt/alt/python36/lib/python3.6/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((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyt
setAttributes^s

	c`s�|jjt��S(N(Rt	cloneNodetFalse(R(R$(sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyR@mscS`s
|jj�S(N(RR5(R((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyt
hasContentpscS`s4|jdkr td|jfS|j|jfSdS(Nuhtml(t	namespaceR(RR(R((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pytgetNameTuplessN(R"R#R
tpropertyRCR+R(R1R.R4R:R;R?RR@RBRDt	nameTuple((R
R$(sV/opt/alt/python36/lib/python3.6/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(sV/opt/alt/python36/lib/python3.6/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$(sV/opt/alt/python36/lib/python3.6/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$(sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pytelementClass�sc`s�|jj|��S(N(RJt
createComment(RR/(R$(sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pytcommentClass�sc`s�|jj��S(N(RJtcreateDocumentFragment(R(R$(sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyt
fragmentClass�scS`s|jj|j�dS(N(RJR+R(RR,((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyR+�sc`s
�|�S(N((RR(ttestSerializer(sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyR_�scS`s|jS(N(RJ(R((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pytgetDocument�scS`stjj|�jS(N(RRGtgetFragmentR(R((sV/opt/alt/python36/lib/python3.6/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*((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyR1�sN(R"R#RNRVR(RZR\R^R+R_R`RaR1timplementationR((RMtDomImplementationR$R_(sV/opt/alt/python36/lib/python3.6/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(sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyRw�sN		!!!					)
u
(t	normalizetjoin(R((RvRwsV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyR_�s

.
(RRRRGtlocals(RfRG((R
RMRfR$R_sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyt
getDomBuilders$"C(:	6(t
__future__RRRtcollections.abcRtImportErrortcollectionstxml.domRRRKtRRRt_utilsR	R{tgetDomModule(((sV/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyt<module>s
	�

Zerion Mini Shell 1.0