MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 18.216.95.250
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyc
�
r2Wc	@`s	ddlmZmZmZddlmZmZddddddd	d
dg	Zddlm	Z	e	j
Ze	jZ
e	jZe	jZe	jZe	jZd
ZddlmZmZdje�Zed�Zd�Zdefd��YZdefd��YZ dS(i(tabsolute_importtdivisiontunicode_literals(t	text_typetstring_typesuDOCUMENTuDOCTYPEuTEXTuELEMENTuCOMMENTuENTITYuUNKNOWNu
TreeWalkeruNonRecursiveTreeWalker(tNodeu<#UNKNOWN#>i(tvoidElementstspaceCharactersucC`s>|dkr|rdSdSnt|t�r0|St|�SdS(u<Wrapper around six.text_type to convert None to empty stringuN(tNonet
isinstanceR(tst
blank_if_none((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytto_textscC`s|dkpt|t�S(u2Wrapper around isinstance(string_types) or is NoneN(RR	R(tstring((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytis_text_or_none"st
TreeWalkercB`sweZd�Zd�Zd�Zed�Zd�Zd�Zd�Z	d�Z
dded�Z
d	�Zd
�ZRS(cC`s
||_dS(N(ttree(tselfR((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyt__init__(scC`s
t�dS(N(tNotImplementedError(R((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyt__iter__+scC`sidd6|d6S(NuSerializeErrorutypeudata((Rtmsg((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyterror.scc`s�|dks-t|t�s-tt|���t|t�sNtt|���td�|j�D��spt�idd6t|t�d6t|�d6|d6V|r�|j	d�VndS(Ncs`sT|]J\\}}}|dks0t|t�oKt|t�oKt|t�VqdS(N(RR	R(t.0t	namespacetnametvalue((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pys	<genexpr>4suEmptyTagutypeunameu	namespaceudatauVoid element has children(
RR	RtAssertionErrorttypetalltitemsRtFalseR(RRRtattrsthasChildren((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytemptyTag1s-!	
	cC`s�|dks-t|t�s-tt|���t|t�sNtt|���td�|j�D��spt�idd6t|�d6t|�d6t	d�|j�D��d6S(Ncs`sT|]J\\}}}|dks0t|t�oKt|t�oKt|t�VqdS(N(RR	R(RRRR((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pys	<genexpr>BsuStartTagutypeunameu	namespacecs`sE|];\\}}}t|t�t|�ft|t�fVqdS(N(RR(RRRR((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pys	<genexpr>Jsudata(
RR	RRRRRRRtdict(RRRR ((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytstartTag?s-!	


	cC`s}|dks-t|t�s-tt|���t|t�sNtt|���idd6t|t�d6t|�d6id6S(NuEndTagutypeunameu	namespaceudata(RR	RRRRR(RRR((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytendTagNs-!

cc`s�t|t�s!tt|���t|�}|jt�}|t|�t|� }|rridd6|d6Vn|}|jt�}|t|�}|r�idd6|d6Vn|r�idd6|d6VndS(NuSpaceCharactersutypeudatau
Characters(	R	RRRRtlstripRtlentrstrip(Rtdatatmiddletlefttright((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyttextWs!cC`s9t|t�s!tt|���idd6t|�d6S(NuCommentutypeudata(R	RRRR(RR)((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytcommentgs!cC`s�t|�stt|���t|�s<tt|���t|�sZtt|���idd6t|�d6t|�d6t|�d6t|�d6S(NuDoctypeutypeunameupublicIdusystemIducorrect(RRRR(RRtpublicIdtsystemIdtcorrect((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytdoctypels



cC`s9t|t�s!tt|���idd6t|�d6S(NuEntityutypeuname(R	RRRR(RR((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytentityws!cC`s|jd|�S(NuUnknown node type: (R(RtnodeType((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytunknown|sN(t__name__t
__module__RRRRR"R$R%R-R.RtTrueR2R3R5(((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyR's									tNonRecursiveTreeWalkercB`s5eZd�Zd�Zd�Zd�Zd�ZRS(cC`s
t�dS(N(R(Rtnode((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytgetNodeDetails�scC`s
t�dS(N(R(RR:((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyt
getFirstChild�scC`s
t�dS(N(R(RR:((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytgetNextSibling�scC`s
t�dS(N(R(RR:((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyt
getParentNode�scc`sh|j}xX|dk	rc|j|�}|d|d}}t}|tkr_|j|�Vn	|tkr�x�|j|�D]}|Vq{Wn�|tkr�|\}}}}|t	kr�x%|j
||||�D]}|Vq�Wt}qh|j|||�Vni|tkr |j
|d�VnH|tkrA|j|d�Vn'|tkrVt}n|j|d�V|r�|j|�}	nd}	|	dk	r�|	}qx�|dk	r_|j|�}|d|d}}|tkr|\}}}}|t	kr|j||�Vqn|j|kr(d}Pn|j|�}
|
dk	rM|
}Pq�|j|�}q�WqWdS(Nii(RRR;RtDOCTYPER2tTEXTR-tELEMENTRR"R$tCOMMENTR.tENTITYR3tDOCUMENTR8R5R<R%R=R>(RtcurrentNodetdetailsRR!ttokenRRt
attributest
firstChildtnextSibling((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyR�sZ	
				(R6R7R;R<R=R>R(((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyR9�s
				N(!t
__future__RRRtpip._vendor.sixRRt__all__txml.domRt
DOCUMENT_NODERDtDOCUMENT_TYPE_NODER?t	TEXT_NODER@tELEMENT_NODERAtCOMMENT_NODERBtENTITY_NODERCtUNKNOWNt	constantsRRtjoinR8RRtobjectRR9(((sJ/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyt<module>s"						
	Y

MMCT - 2023