%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.pyo

�
�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`sQidd6t|t�d6t|�d6|d6V|rM|jtd��VndS(NuEmptyTagutypeunameu	namespaceudatauVoid element has children(RtFalseRt_(Rt	namespacetnametattrsthasChildren((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytemptyTag1s

	cC`sBidd6t|�d6t|�d6td�|j�D��d6S(NuStartTagutypeunameu	namespacecs`sE|];\\}}}t|t�t|�ft|t�fVqdS(N(RR(t.0RRtvalue((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pys	<genexpr>Jsudata(RRtdicttitems(RRRR((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytstartTag?s



	cC`s/idd6t|t�d6t|�d6id6S(NuEndTagutypeunameu	namespaceudata(RR(RRR((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytendTagNs

cc`s�t|�}|jt�}|t|�t|� }|rQidd6|d6Vn|}|jt�}|t|�}|r�idd6|d6Vn|r�idd6|d6VndS(NuSpaceCharactersutypeudatau
Characters(RtlstripRtlentrstrip(Rtdatatmiddletlefttright((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyttextWscC`sidd6t|�d6S(NuCommentutypeudata(R(RR'((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytcommentgscC`s?idd6t|�d6t|�d6t|�d6t|�d6S(NuDoctypeutypeunameupublicIdusystemIducorrect(R(RRtpublicIdtsystemIdtcorrect((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytdoctypels




cC`sidd6t|�d6S(NuEntityutypeuname(R(RR((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytentitywscC`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__RRRRRR"R#R+R,RtTrueR0R1R3(((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(RR8((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyt
getFirstChild�scC`s
t�dS(N(R(RR8((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pytgetNextSibling�scC`s
t�dS(N(R(RR8((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(RRR9RtDOCTYPER0tTEXTR+tELEMENTRRR"tCOMMENTR,tENTITYR1tDOCUMENTR6R3R:R#R;R<(RtcurrentNodetdetailsttypeRttokenRRt
attributest
firstChildtnextSibling((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyR�sZ	
				(R4R5R9R:R;R<R(((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyR7�s
				("t
__future__RRRtpip._vendor.sixRRtgettextRtxml.domRt
DOCUMENT_NODERBtDOCUMENT_TYPE_NODER=t	TEXT_NODER>tELEMENT_NODER?tCOMMENT_NODER@tENTITY_NODERAtUNKNOWNt	constantsRRtjoinR6RRtobjectRR7(((sW/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/_base.pyt<module>s"							
	Y

Zerion Mini Shell 1.0