%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/
Upload File :
Create Path :
Current File : //opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyc

�
�wMVc@`s�ddlmZmZmZddlmZmZddlZejZddl	m
Z
e
jZe
j
Ze
jZe
jZe
jZe
jZdZddlmZmZdje�Zed	�Zd
�Zdefd��YZ d
e fd��YZ!dS(i(tabsolute_importtdivisiontunicode_literals(t	text_typetstring_typesN(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((sW/opt/alt/python35/lib/python3.5/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((sW/opt/alt/python35/lib/python3.5/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((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyt__init__(scC`s
t�dS(N(tNotImplementedError(R((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyt__iter__+scC`sidd6|d6S(NuSerializeErrorutypeudata((Rtmsg((sW/opt/alt/python35/lib/python3.5/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	t
d��VndS(Ncs`sT|]J\\}}}|dks0t|t�oKt|t�oKt|t�VqdS(N(RR	R(t.0t	namespacetnametvalue((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pys	<genexpr>4suEmptyTagutypeunameu	namespaceudatauVoid element has children(RR	RtAssertionErrorttypetalltitemsRtFalseRt_(RRRtattrsthasChildren((sW/opt/alt/python35/lib/python3.5/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((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pys	<genexpr>BsuStartTagutypeunameu	namespacecs`sE|];\\}}}t|t�t|�ft|t�fVqdS(N(RR(RRRR((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pys	<genexpr>Jsudata(
RR	RRRRRRRtdict(RRRR!((sW/opt/alt/python35/lib/python3.5/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((sW/opt/alt/python35/lib/python3.5/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((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyttextWs!cC`s9t|t�s!tt|���idd6t|�d6S(NuCommentutypeudata(R	RRRR(RR*((sW/opt/alt/python35/lib/python3.5/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((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytdoctypels



cC`s9t|t�s!tt|���idd6t|�d6S(NuEntityutypeuname(R	RRRR(RR((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytentityws!cC`s|jtd�|�S(NuUnknown node type: (RR (RtnodeType((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytunknown|sN(t__name__t
__module__RRRRR#R%R&R.R/RtTrueR3R4R6(((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyR's									tNonRecursiveTreeWalkercB`s5eZd�Zd�Zd�Zd�Zd�ZRS(cC`s
t�dS(N(R(Rtnode((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytgetNodeDetails�scC`s
t�dS(N(R(RR;((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyt
getFirstChild�scC`s
t�dS(N(R(RR;((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytgetNextSibling�scC`s
t�dS(N(R(RR;((sW/opt/alt/python35/lib/python3.5/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<RtDOCTYPER3tTEXTR.tELEMENTRR#R%tCOMMENTR/tENTITYR4tDOCUMENTR9R6R=R&R>R?(RtcurrentNodetdetailsRR"ttokenRRt
attributest
firstChildtnextSibling((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyR�sZ	
				(R7R8R<R=R>R?R(((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyR:�s
				("t
__future__RRRtpip._vendor.sixRRtgettextR txml.domRt
DOCUMENT_NODEREtDOCUMENT_TYPE_NODER@t	TEXT_NODERAtELEMENT_NODERBtCOMMENT_NODERCtENTITY_NODERDtUNKNOWNt	constantsRRtjoinR9RRtobjectRR:(((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyt<module>s"							
	Y

Zerion Mini Shell 1.0