Hacked By AnonymousFox

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

�
�Rec@`s�ddlmZmZmZddlmZyddlmZWn!ek
rcddl	mZnXddl
mZmZer�ddl
jjZn<yddljjZWn#ek
r�ddl
jjZnXdddd	d
dgZyCed�Zeee�s+ed
�Zeee�s+t�nWnek
rEeZnXeZdefd��YZdefd��YZd�Zd�Z d�Z!d�Z"dS(i(tabsolute_importtdivisiontunicode_literals(t
ModuleType(tMapping(t	text_typetPY3Nu
default_etreeuMethodDispatcheruisSurrogatePairusurrogatePairToCodepointumoduleFactoryFactoryusupports_lone_surrogatesu"\uD800"u	u"\uD800"tMethodDispatchercB`s/eZdZdd�Zd�Zdd�ZRS(upDict with 2 special properties:

    On initiation, keys that are lists, sets or tuples are converted to
    multiple keys so accessing any one of the items in the original
    list-like object returns the matching value

    md = MethodDispatcher({("foo", "bar"):"baz"})
    md["foo"] == "baz"

    A default value which can be set through the default attribute.
    cC`s�g}xi|D]a\}}t|ttttf�r[x7|D]}|j||f�q;Wq
|j||f�q
Wtj||�t|�t|�ks�t	�d|_dS(N(t
isinstancetlistttuplet	frozensettsettappendtdictt__init__tlentAssertionErrortNonetdefault(tselftitemst_dictEntriestnametvaluetitem((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/_utils.pyR9s
cC`stj|||j�S(N(RtgetR(Rtkey((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/_utils.pyt__getitem__EscC`s
t||�S(N(tBoundMethodDispatcher(Rtinstancetowner((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/_utils.pyt__get__Hs(N(t__name__t
__module__t__doc__RRRR (((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/_utils.pyR,s	RcB`sDeZdZd�Zd�Zd�Zd�Zd�Zd�ZRS(uAWraps a MethodDispatcher, binding its return values to `instance`cC`s||_||_dS(N(Rt
dispatcher(RRR$((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/_utils.pyRNs	cC`s|j|j|j�S(N(R$R R(RR((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/_utils.pyRRscC`s||jkr||S|SdS(N(R$(RRR((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/_utils.pyRWscC`s
t|j�S(N(titerR$(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/_utils.pyt__iter__]scC`s
t|j�S(N(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/_utils.pyt__len__`scC`s
||jkS(N(R$(RR((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/_utils.pyt__contains__cs(	R!R"R#RRRR&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/_utils.pyRLs					cC`sht|�dkogt|d�dkogt|d�dkogt|d�dkogt|d�dkS(Niii�i��ii�i��(Rtord(tdata((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/_utils.pytisSurrogatePairjs,cC`s2dt|d�ddt|d�d}|S(Niii�iii�(R)(R*tchar_val((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/_utils.pytsurrogatePairToCodepointpsc`si���fd�}|S(Nc`sttjtd��r(d|j}n
d|j}t|j��}y�|||SWn�tk
rt|�}�|||�}|jj|�d�kr�i�|<nd�|kr�i�||<nd�||kr�i�|||<n|�|||<|SXdS(Nuu_%s_factorys_%s_factoryunameuargsukwargs(	RRR!ttypeR
RtKeyErrort__dict__tupdate(t
baseModuletargstkwargsRtkwargs_tupletmodtobjs(tfactorytmoduleCache(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/_utils.pyt
moduleFactory|s$


((R8R:((R8R9s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/html5lib/_utils.pytmoduleFactoryFactoryysc`si���fd�}|S(Nc`sHt|�t|j��f}|�kr@�||��|<n�|S(N(R
R(R3R4R(tcachetfunc(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/_utils.pytwrapped�s((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/_utils.pytmemoize�s(#t
__future__RRRttypesRtcollections.abcRtImportErrortcollectionstpip._vendor.sixRRtxml.etree.ElementTreetetreetElementTreet
default_etreetxml.etree.cElementTreetcElementTreet__all__tevalt_xRRt	ExceptiontFalsetsupports_lone_surrogatestTrueRRRR+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/_utils.pyt<module>s:

			

 				

Hacked By AnonymousFox1.0, Coded By AnonymousFox