ok

Mini Shell

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

�
Bu�_c@`s�ddlmZmZmZddlmZyddlmZWn!ek
rcddl	mZnXddl
mZmZer�ddl
jjZn<yddljjZWn#ek
r�ddl
jjZnXdddd	d
dgZy.ed�Zeee�sed
�ZnWnek
r0eZnXeZdefd��YZdefd��YZd�Zd�Zd�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||�d|_	dS(N(
t
isinstancetlistttuplet	frozensettsettappendtdictt__init__tNonetdefault(tselftitemst_dictEntriestnametvaluetitem((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/_utils.pyR9s
cC`stj|||j�S(N(RtgetR(Rtkey((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/_utils.pyt__getitem__EscC`s
t||�S(N(tBoundMethodDispatcher(Rtinstancetowner((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/_utils.pyt__get__Hs(N(t__name__t
__module__t__doc__RRRR(((sL/opt/alt/python36/lib/python3.6/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"((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/_utils.pyRNs	cC`s|j|j|j�S(N(R"RR(RR((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/_utils.pyRRscC`s||jkr||S|SdS(N(R"(RRR((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/_utils.pyRWscC`s
t|j�S(N(titerR"(R((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/_utils.pyt__iter__]scC`s
t|j�S(N(tlenR"(R((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/_utils.pyt__len__`scC`s
||jkS(N(R"(RR((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/_utils.pyt__contains__cs(	RR R!RRRR$R&R'(((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/_utils.pyRLs					cC`sht|�dkogt|d�dkogt|d�dkogt|d�dkogt|d�dkS(Niii�i��ii�i��(R%tord(tdata((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/_utils.pytisSurrogatePairjs,cC`s2dt|d�ddt|d�d}|S(Niii�iii�(R((R)tchar_val((sL/opt/alt/python36/lib/python3.6/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(	RRRttypeR
RtKeyErrort__dict__tupdate(t
baseModuletargstkwargsRtkwargs_tupletmodtobjs(tfactorytmoduleCache(sL/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/_utils.pyt
moduleFactory|s$


((R7R9((R7R8sL/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/_utils.pytmoduleFactoryFactoryysc`si���fd�}|S(Nc`sHt|�t|j��f}|�kr@�||��|<n�|S(N(R
R(R2R3R(tcachetfunc(sL/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/_utils.pytwrapped�s((R<R=((R;R<sL/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/_utils.pytmemoize�s("t
__future__RRRttypesRtcollections.abcRtImportErrortcollectionstpip._vendor.sixRRtxml.etree.ElementTreetetreetElementTreet
default_etreetxml.etree.cElementTreetcElementTreet__all__tevalt_xRt	ExceptiontFalsetsupports_lone_surrogatestTrueRRRR*R,R:R>(((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/_utils.pyt<module>s:

			

 				

Zerion Mini Shell 1.0