ok

Mini Shell

Direktori : /opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/
Upload File :
Current File : //opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyo

�
�2{Yc@@s]ddlmZddlZddlZddlZejddkr�ddlmZefZe	Z
ddlmZ
ddlZddlZddlmZddlmZmZmZmZmZdd	lmZmZmZmZmZm Z m!Z!d
�Zddl"Z"ddl"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,ddl-Z-ddl.Z.ddl/Z0ddl1m1Z1ddl2Z2e3Z3dd
l4m5Z6ddl4m7Z8da:d�Z;noddl<mZe=fZe=Z
ddl<m>Z
ddlZddlZddlZddl?mZmZmZm;Z;mZmZmZmZm!Z!ddl@m$Z$mZm#Z#mZmZm'Z'm(Z(m)Z)m*Z*m+Z+m,Z,ddlAm&Z&m%Z%m Z ddlBjCZ-ddl@jDZ"ddlEjCZ.ddl0Z0ddlFm1Z1ddlGjHZ2eIZ3ddl4m8Z8e6Z6yddlJmKZKmLZLWn9eMk
r�deNfd��YZLd�ZOd�ZKnXyddlmPZQWn'eMk
r�deRfd��YZQnXyddlmSZSWn*eMk
rejTejUBdd�ZSnXddlVmWZXeYeXd �r9eXZWn<dd!lVmZZ[d"e[fd#��YZZd$eXfd%��YZWydd&l\m]Z]WneMk
r�d'�Z]nXyddl^Z^Wn!eMk
r�dd(lm^Z^nXy
e_Z_Wn*e`k
rdd)lambZbd*�Z_nXyejcZcejdZdWnJeek
rsejf�Zgegd+krXd,Zhnd-Zhd.�Zcd/�ZdnXydd0limjZjWnTeMk
r�dd1lkmlZlmmZmddlZejnd2�Zod3�Zpd4�ZjnXydd5lqmrZrWn!eMk
rdd5lsmrZrnXejd6 dSkr9e1�jtZtndd8lqmtZtydd9lamuZuWnkeMk
r�dd:lamvZvydd;lwmxZyWneMk
r�d<d=�ZynXd>evfd?��YZunXydd@lzm{Z{WneMk
r�ddA�Z{nXyddBlam|Z|Wn�eMk
r�yddCl}m~ZWn!eMk
rZddCl�m~ZnXy ddDl�m�Z�m�Z�m�Z�WneMk
r�nXdEe�fdF��YZ|nXyddGl�m�Z�m�Z�Wn�eMk
rXejndHej��Z�dI�Z�dJe�fdK��YZ�ddL�Z�dMe�fdN��YZ�dOe�fdP��YZ�dQeRfdR��YZ�nXdS(Ti(tabsolute_importNi(tStringIO(tFileTypei(tshutil(turlparset
urlunparseturljointurlsplitt
urlunsplit(turlretrievetquotetunquoteturl2pathnametpathname2urltContentTooShortErrort	splittypecC@s+t|t�r!|jd�}nt|�S(Nsutf-8(t
isinstancetunicodetencodet_quote(ts((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR
s(
tRequestturlopentURLErrort	HTTPErrortHTTPBasicAuthHandlertHTTPPasswordMgrtHTTPSHandlertHTTPHandlertHTTPRedirectHandlertbuild_opener(t
HTMLParser(tifilter(tifilterfalsecC@sYtdkr*ddl}|jd�antj|�}|rO|jdd�Sd|fS(sJsplituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'.iNs^(.*)@(.*)$ii(t	_userprogtNonetretcompiletmatchtgroup(thostR$R&((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt	splituser-s(t
TextIOWrapper(	RRRR)R
RRRR(RR	RRR
RRRRRR(RRR(tfilterfalse(tmatch_hostnametCertificateErrorR-cB@seZRS((t__name__t
__module__(((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR-UscC@s�g}x[|jd�D]J}|dkr8|jd�qtj|�}|j|jdd��qWtjddj|�dtj�S(	Nt.t*s[^.]+s\*s[^.]*s\As\.s\Z(tsplittappendR$tescapetreplaceR%tjoint
IGNORECASE(tdntpatstfrag((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt_dnsname_to_patYscC@sg|std��ng}|jdd
�}xI|D]A\}}|dkr4t|�j|�redS|j|�q4q4W|s�xi|jdd�D]R}xI|D]A\}}|dkr�t|�j|�r�dS|j|�q�q�Wq�Wnt|�dkr(td|d	jtt	|��f��n;t|�dkrWtd
||df��ntd��dS(s7Verify that *cert* (in decoded format as returned by
        SSLSocket.getpeercert()) matches the *hostname*.  RFC 2818 rules
        are mostly followed, but IP addresses are not accepted for *hostname*.

        CertificateError is raised on failure. On success, the function
        returns nothing.
        sempty or no certificatetsubjectAltNametDNSNtsubjectt
commonNameis&hostname %r doesn't match either of %ss, shostname %r doesn't match %ris=no appropriate commonName or subjectAltName fields were found(((
t
ValueErrortgetR;R&R3tlenR-R6tmaptrepr(tcertthostnametdnsnamestsantkeytvaluetsub((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR,gs.%(tSimpleNamespacet	ContainercB@seZdZd�ZRS(sR
        A generic container for when multiple values need to be returned
        cK@s|jj|�dS(N(t__dict__tupdate(tselftkwargs((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt__init__�s(R.R/t__doc__RR(((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyRM�s(twhichc@s�d�}tjj��r2|�|�r.�SdS|dkrYtjjdtj�}n|scdS|jtj�}t	j
dkrtj|kr�|jdtj�ntjjdd�jtj�}t
�fd�|D��r��g}qg|D]}�|^q�}n	�g}t�}xu|D]m}tjj|�}	|	|kr+|j|	�x9|D].}
tjj||
�}|||�rc|SqcWq+q+WdS(	sKGiven a command, mode, and a PATH string, return the path which
        conforms to the given mode on the PATH, or None if there is no such
        file.

        `mode` defaults to os.F_OK | os.X_OK. `path` defaults to the result
        of os.environ.get("PATH"), or can be overridden with a custom search
        path.

        cS@s5tjj|�o4tj||�o4tjj|�S(N(tostpathtexiststaccesstisdir(tfntmode((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt
_access_check�s$tPATHtwin32itPATHEXTtc3@s*|] }�j�j|j��VqdS(N(tlowertendswith(t.0text(tcmd(sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pys	<genexpr>�sN(RURVtdirnameR#tenvironRAtdefpathR2tpathseptsystplatformtcurdirtinserttanytsettnormcasetaddR6(ReR[RVR\tpathexttfilesRdtseentdirtnormdirtthefiletname((ResK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyRT�s8
	! 		


(tZipFilet	__enter__(t
ZipExtFileR{cB@s#eZd�Zd�Zd�ZRS(cC@s|jj|j�dS(N(RNRO(RPtbase((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyRR�scC@s|S(N((RP((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyRz�scG@s|j�dS(N(tclose(RPtexc_info((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt__exit__�s(R.R/RRRzR(((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR{�s		RycB@s#eZd�Zd�Zd�ZRS(cC@s|S(N((RP((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyRz�scG@s|j�dS(N(R}(RPR~((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR�scO@stj|||�}t|�S(N(tBaseZipFiletopenR{(RPtargsRQR|((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR��s(R.R/RzRR�(((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyRy�s		(tpython_implementationcC@s@dtjkrdStjdkr&dStjjd�r<dSdS(s6Return a string identifying the Python implementation.tPyPytjavatJythont
IronPythontCPython(RjtversionRURxt
startswith(((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR�s(t	sysconfig(tCallablecC@s
t|t�S(N(RR�(tobj((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pytcallablestmbcststricttsurrogateescapecC@sOt|t�r|St|t�r2|jtt�Stdt|�j��dS(Nsexpect bytes or str, not %s(	Rtbytest	text_typeRt_fsencodingt	_fserrorst	TypeErrorttypeR.(tfilename((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pytfsencode#scC@sOt|t�r|St|t�r2|jtt�Stdt|�j��dS(Nsexpect bytes or str, not %s(	RR�R�tdecodeR�R�R�R�R.(R�((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pytfsdecode,s(tdetect_encoding(tBOM_UTF8tlookupscoding[:=]\s*([-\w.]+)cC@s^|d j�jdd�}|dks7|jd�r;dS|dksV|jd
�rZdS|S(s(Imitates get_normal_name in tokenizer.c.it_t-sutf-8sutf-8-slatin-1s
iso-8859-1siso-latin-1slatin-1-siso-8859-1-siso-latin-1-(slatin-1s
iso-8859-1siso-latin-1(slatin-1-siso-8859-1-siso-latin-1-(RaR5R�(torig_enctenc((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt_get_normal_name=sc@sy�jj�Wntk
r)d�nXt�d}d}�fd�}��fd�}|�}|jt�r�t�|d}d}n|s�|gfS||�}|r�||gfS|�}|s�||gfS||�}|r�|||gfS|||gfS(s>
        The detect_encoding() function is used to detect the encoding that should
        be used to decode a Python source file.  It requires one argment, readline,
        in the same way as the tokenize() generator.

        It will call readline a maximum of twice, and return the encoding used
        (as a string) and a list of any lines (left as bytes) it has read in.

        It detects the encoding from the presence of a utf-8 bom or an encoding
        cookie as specified in pep-0263.  If both a bom and a cookie are present,
        but disagree, a SyntaxError will be raised.  If the encoding cookie is an
        invalid charset, raise a SyntaxError.  Note that if a utf-8 bom is found,
        'utf-8-sig' is returned.

        If no encoding is specified, then the default of 'utf-8' will be returned.
        sutf-8c@s$y��SWntk
rdSXdS(NR`(t
StopIteration((treadline(sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pytread_or_stop`s
c@s7y|jd�}WnDtk
rYd}�dk	rJdj|��}nt|��nXtj|�}|ssdSt|d�}yt|�}WnHt	k
r��dkr�d|}ndj�|�}t|��nX�r3|j
dkr&�dkrd}ndj��}t|��n|d	7}n|S(
Nsutf-8s'invalid or missing encoding declarations{} for {!r}isunknown encoding: sunknown encoding for {!r}: {}sencoding problem: utf-8s encoding problem for {!r}: utf-8s-sig(R�tUnicodeDecodeErrorR#tformattSyntaxErrort	cookie_retfindallR�R�tLookupErrorRx(tlinetline_stringtmsgtmatchestencodingtcodec(t	bom_foundR�(sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pytfind_cookiefs6


			
is	utf-8-sigN(t__self__RxtAttributeErrorR#tFalseR�R�tTrue(R�R�tdefaultR�R�tfirsttsecond((R�R�R�sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR�Hs4

&	
	

	
(R4ii(tunescape(tChainMap(tMutableMapping(trecursive_reprs...c@s�fd�}|S(sm
            Decorator to make a repr function return fillvalue for a recursive
            call
            c@smt�����fd�}t�d�|_t�d�|_t�d�|_t�di�|_|S(Nc@sWt|�t�f}|�kr%�S�j|�z�|�}Wd�j|�X|S(N(tidt	get_identRqtdiscard(RPRItresult(t	fillvaluetrepr_runningt
user_function(sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pytwrapper�s
R/RSR.t__annotations__(RotgetattrR/RSR.R�(R�R�(R�(R�R�sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pytdecorating_function�s	((R�R�((R�sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt_recursive_repr�sR�cB@s�eZdZd�Zd�Zd�Zdd�Zd�Zd�Z	d�Z
d�Ze�d	��Z
ed
��Zd�ZeZd�Zed
��Zd�Zd�Zd�Zd�Zd�ZRS(s� A ChainMap groups multiple dicts (or other mappings) together
        to create a single, updateable view.

        The underlying mappings are stored in a list.  That list is public and can
        accessed or updated using the *maps* attribute.  There is no other state.

        Lookups search the underlying mappings successively until a key is found.
        In contrast, writes, updates, and deletions only operate on the first
        mapping.

        cG@st|�pig|_dS(s�Initialize a ChainMap by setting *maps* to the given mappings.
            If no mappings are provided, a single empty dictionary is used.

            N(tlisttmaps(RPR�((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyRR�scC@st|��dS(N(tKeyError(RPRI((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt__missing__�scC@sAx1|jD]&}y||SWq
tk
r/q
Xq
W|j|�S(N(R�R�R�(RPRItmapping((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt__getitem__�s
cC@s||kr||S|S(N((RPRIR�((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyRA�scC@stt�j|j��S(N(RBRotunionR�(RP((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt__len__�scC@stt�j|j��S(N(titerRoR�R�(RP((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt__iter__�sc@st�fd�|jD��S(Nc3@s|]}�|kVqdS(N((Rctm(RI(sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pys	<genexpr>�s(RnR�(RPRI((RIsK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt__contains__�scC@s
t|j�S(N(RnR�(RP((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt__bool__�scC@s%dj|djtt|j���S(Ns{0.__class__.__name__}({1})s, (R�R6RCRDR�(RP((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt__repr__�scG@s|tj||��S(s?Create a ChainMap with a single dict created from the iterable.(tdicttfromkeys(tclstiterableR�((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR�scC@s$|j|jdj�|jd�S(sHNew ChainMap or subclass with a new copy of maps[0] and refs to maps[1:]ii(t	__class__R�tcopy(RP((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR�	scC@s|ji|j�S(s;New ChainMap with a new dict followed by all previous maps.(R�R�(RP((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt	new_childscC@s|j|jd�S(sNew ChainMap from maps[1:].i(R�R�(RP((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pytparentsscC@s||jd|<dS(Ni(R�(RPRIRJ((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt__setitem__scC@s?y|jd|=Wn&tk
r:tdj|���nXdS(Nis(Key not found in the first mapping: {!r}(R�R�R�(RPRI((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt__delitem__s
cC@s9y|jdj�SWntk
r4td��nXdS(sPRemove and return an item pair from maps[0]. Raise KeyError is maps[0] is empty.is#No keys found in the first mapping.N(R�tpopitemR�(RP((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR�!s
cG@sHy|jdj||�SWn&tk
rCtdj|���nXdS(sWRemove *key* from maps[0] and return its value. Raise KeyError if *key* not in maps[0].is(Key not found in the first mapping: {!r}N(R�tpopR�R�(RPRIR�((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR�(s
cC@s|jdj�dS(s'Clear maps[0], leaving maps[1:] intact.iN(R�tclear(RP((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR�/sN(R.R/RSRRR�R�R#RAR�R�R�R�R�R�tclassmethodR�R�t__copy__R�tpropertyR�R�R�R�R�R�(((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR��s(													(tcache_from_sourcecC@s2|dkrt}n|r$d}nd}||S(Ntcto(R#t	__debug__(RVtdebug_overridetsuffix((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR�6s		(tOrderedDict(R�(tKeysViewt
ValuesViewt	ItemsViewR�cB@seZdZd�Zejd�Zejd�Zd�Zd�Zd�Z	e
d�Zd�Zd	�Z
d
�Zd�Zd�Zd
�Zd�ZeZe�Zed�Zdd�Zdd�Zd�Zd�Zedd��Zd�Zd�Zd�Z d�Z!d�Z"RS(s)Dictionary that remembers insertion ordercO@s�t|�dkr+tdt|���ny|jWn7tk
rog|_}||dg|(i|_nX|j||�dS(s�Initialize an ordered dictionary.  Signature is the same as for
            regular dictionaries, but keyword arguments are not recommended
            because their insertion order is arbitrary.

            is$expected at most 1 arguments, got %dN(RBR�t_OrderedDict__rootR�R#t_OrderedDict__mapt_OrderedDict__update(RPR�tkwdstroot((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyRR]s


cC@s\||krH|j}|d}|||g|d<|d<|j|<n||||�dS(s!od.__setitem__(i, y) <==> od[i]=yiiN(R�R�(RPRIRJtdict_setitemR�tlast((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR�ms
	
)cC@s@|||�|jj|�\}}}||d<||d<dS(s od.__delitem__(y) <==> del od[y]iiN(R�R�(RPRItdict_delitemt	link_prevt	link_next((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR�ws

cc@s=|j}|d}x#||k	r8|dV|d}qWdS(sod.__iter__() <==> iter(od)iiN(R�(RPR�tcurr((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR��s
	
	cc@s=|j}|d}x#||k	r8|dV|d}qWdS(s#od.__reversed__() <==> reversed(od)iiN(R�(RPR�R�((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt__reversed__�s
	
	cC@smyHx|jj�D]
}|2qW|j}||dg|(|jj�Wntk
r[nXtj|�dS(s.od.clear() -> None.  Remove all items from od.N(R�t
itervaluesR�R#R�R�R�(RPtnodeR�((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR��s	
cC@s�|std��n|j}|rO|d}|d}||d<||d<n(|d}|d}||d<||d<|d}|j|=tj||�}||fS(s�od.popitem() -> (k, v), return and remove a (key, value) pair.
            Pairs are returned in LIFO order if last is true or FIFO order if false.

            sdictionary is emptyiii(R�R�R�R�R�(RPR�R�tlinkR�R�RIRJ((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR��s 	









cC@s
t|�S(sod.keys() -> list of keys in od(R�(RP((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pytkeys�scC@sg|D]}||^qS(s#od.values() -> list of values in od((RPRI((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pytvalues�scC@s!g|D]}|||f^qS(s.od.items() -> list of (key, value) pairs in od((RPRI((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pytitems�scC@s
t|�S(s0od.iterkeys() -> an iterator over the keys in od(R�(RP((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pytiterkeys�scc@sx|D]}||VqWdS(s2od.itervalues -> an iterator over the values in odN((RPtk((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR�s
cc@s$x|D]}|||fVqWdS(s=od.iteritems -> an iterator over the (key, value) items in odN((RPR((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt	iteritems�s
cO@s&t|�dkr.tdt|�f��n|sCtd��n|d}d}t|�dkrr|d}nt|t�r�xw|D]}||||<q�WnXt|d�r�xF|j�D]}||||<q�Wn!x|D]\}}|||<q�Wx$|j�D]\}}|||<qWdS(	s�od.update(E, **F) -> None.  Update od from dict/iterable E and F.

            If E is a dict instance, does:           for k in E: od[k] = E[k]
            If E has a .keys() method, does:         for k in E.keys(): od[k] = E[k]
            Or if E is an iterable of items, does:   for k, v in E: od[k] = v
            In either case, this is followed by:     for k, v in F.items(): od[k] = v

            is8update() takes at most 2 positional arguments (%d given)s,update() takes at least 1 argument (0 given)iiRN((RBR�RR�thasattrRR(R�R�RPtotherRIRJ((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyRO�s&	


cC@sC||kr!||}||=|S||jkr?t|��n|S(s�od.pop(k[,d]) -> v, remove specified key and return the corresponding value.
            If key is not found, d is returned if given, otherwise KeyError is raised.

            (t_OrderedDict__markerR�(RPRIR�R�((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR��s
cC@s"||kr||S|||<|S(sDod.setdefault(k[,d]) -> od.get(k,d), also set od[k]=d if k not in od((RPRIR�((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt
setdefault�s
cC@s�|si}nt|�t�f}||kr4dSd||<z5|sXd|jjfSd|jj|j�fSWd||=XdS(sod.__repr__() <==> repr(od)s...is%s()s%s(%r)N(R�t
_get_identR�R.R(RPt
_repr_runningtcall_key((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR�s	
cC@s�g|D]}|||g^q}t|�j�}x'tt��D]}|j|d�qEW|rx|j|f|fS|j|ffS(s%Return state information for picklingN(tvarsR�R�R�R#R�(RPRRt	inst_dict((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt
__reduce__s#cC@s
|j|�S(s!od.copy() -> a shallow copy of od(R�(RP((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR�scC@s(|�}x|D]}|||<qW|S(s�OD.fromkeys(S[, v]) -> New ordered dictionary with keys from S
            and values equal to v (which defaults to None).

            ((R�R�RJtdRI((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR�"s	
cC@sMt|t�r=t|�t|�ko<|j�|j�kStj||�S(s�od.__eq__(y) <==> od==y.  Comparison to another OD is order-sensitive
            while comparison to a regular mapping is order-insensitive.

            (RR�RBRR�t__eq__(RPR
((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR-s.cC@s||kS(N((RPR
((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt__ne__6scC@s
t|�S(s@od.viewkeys() -> a set-like object providing a view on od's keys(R�(RP((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pytviewkeys;scC@s
t|�S(s<od.viewvalues() -> an object providing a view on od's values(R�(RP((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt
viewvalues?scC@s
t|�S(sBod.viewitems() -> a set-like object providing a view on od's items(R�(RP((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt	viewitemsCsN(#R.R/RSRRR�R�R�R�R�R�R�R�RRRRRRROR�tobjectRR�R#RR�RR�R�R�RRRRR(((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR�Qs:	
												
	
	
					(tBaseConfiguratortvalid_idents^[a-z_][a-z0-9_]*$cC@s,tj|�}|s(td|��ntS(Ns!Not a valid Python identifier: %r(t
IDENTIFIERR&R@R�(RR�((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyRMstConvertingDictcB@s#eZdZd�Zdd�ZRS(s A converting dictionary wrapper.cC@sqtj||�}|jj|�}||k	rm|||<t|�tttfkrm||_||_	qmn|S(N(
R�R�tconfiguratortconvertR�RtConvertingListtConvertingTupletparentRI(RPRIRJR�((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR�`s
	cC@sttj|||�}|jj|�}||k	rp|||<t|�tttfkrp||_||_	qpn|S(N(
R�RARRR�RR R!R"RI(RPRIR�RJR�((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyRAls
	N(R.R/RSR�R#RA(((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR]s	cC@sjtj|||�}|jj|�}||k	rft|�tttfkrf||_||_	qfn|S(N(
R�R�RRR�RR R!R"RI(RPRIR�RJR�((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR�xs	R cB@s#eZdZd�Zdd�ZRS(sA converting list wrapper.cC@sqtj||�}|jj|�}||k	rm|||<t|�tttfkrm||_||_	qmn|S(N(
R�R�RRR�RR R!R"RI(RPRIRJR�((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR��s
	i����cC@s^tj||�}|jj|�}||k	rZt|�tttfkrZ||_qZn|S(N(	R�R�RRR�RR R!R"(RPtidxRJR�((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR��s(R.R/RSR�R�(((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR �s	R!cB@seZdZd�ZRS(sA converting tuple wrapper.cC@sgtj||�}|jj|�}||k	rct|�tttfkrc||_||_	qcn|S(N(
ttupleR�RRR�RR R!R"RI(RPRIRJR�((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR��s	(R.R/RSR�(((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR!�sRcB@s�eZdZejd�Zejd�Zejd�Zejd�Zejd�Z	idd6dd	6Z
ee�Z
d
�Zd�Zd�Zd
�Zd�Zd�Zd�ZRS(sQ
        The configurator base class which defines some useful defaults.
        s%^(?P<prefix>[a-z]+)://(?P<suffix>.*)$s^\s*(\w+)\s*s^\.\s*(\w+)\s*s^\[\s*(\w+)\s*\]\s*s^\d+$text_convertRdtcfg_converttcfgcC@st|�|_||j_dS(N(RtconfigR(RPR(((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyRR�sc	C@s�|jd�}|jd�}yy|j|�}x_|D]W}|d|7}yt||�}Wq7tk
r�|j|�t||�}q7Xq7W|SWnVtk
r�tj�d\}}td||f�}|||_	|_
|�nXdS(sl
            Resolve strings to objects using standard import and attribute
            syntax.
            R0iisCannot resolve %r: %sN(R2R�timporterR�R�tImportErrorRjR~R@t	__cause__t
__traceback__(	RPRRxtusedtfoundR:tettbtv((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pytresolve�s"



cC@s
|j|�S(s*Default converter for the ext:// protocol.(R2(RPRJ((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR%�scC@sO|}|jj|�}|dkr7td|��n||j�}|j|j�d}x�|rJ|jj|�}|r�||j�d}n�|jj|�}|r|j�d}|j	j|�s�||}qyt
|�}||}Wqtk
r||}qXn|r1||j�}qatd||f��qaW|S(s*Default converter for the cfg:// protocol.sUnable to convert %risUnable to convert %r at %rN(tWORD_PATTERNR&R#R@tendR(tgroupstDOT_PATTERNt
INDEX_PATTERNt
DIGIT_PATTERNtintR�(RPRJtrestR�RR#tn((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR&�s2	

cC@s/t|t�r7t|t�r7t|�}||_n�t|t�rnt|t�rnt|�}||_n�t|t�r�t|t�r�t|�}||_n�t|t�r+|j	j
|�}|r+|j�}|d}|jj
|d�}|r(|d}t||�}||�}q(q+n|S(s�
            Convert values to an appropriate type. dicts, lists and tuples are
            replaced by their converting alternatives. Strings are checked to
            see if they have a conversion format and are converted if they do.
            tprefixR�N(RRR�RR R�R!R$tstring_typestCONVERT_PATTERNR&t	groupdicttvalue_convertersRAR#R�(RPRJR�RR<t	converterR�((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR�s*

c	C@s�|jd�}t|�s-|j|�}n|jdd�}tg|D]"}t|�rI|||f^qI�}||�}|r�x-|j�D]\}}t|||�q�Wn|S(s1Configure an object with a user-supplied factory.s()R0N(R�R�R2R#R�RRtsetattr(	RPR(R�tpropsRRQR�RxRJ((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pytconfigure_customs5cC@s"t|t�rt|�}n|S(s0Utility function which converts lists to tuples.(RR�R$(RPRJ((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pytas_tuple$s(R.R/RSR$R%R>R3R6R7R8R@tstaticmethodt
__import__R)RRR2R%R&RRDRE(((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyR�s"
				"		(ii(�t
__future__RRUR$Rjtversion_infoRt
basestringR=RR�ttypesRt	file_typet__builtin__tbuiltinstConfigParsertconfigparsert	_backportRRRRRRturllibR	R
RRRR
RRturllib2RRRRRRRRRRthttplibt	xmlrpclibtQueuetqueueRthtmlentitydefst	raw_inputt	itertoolsR tfilterR!R+R#R"R)tiotstrR*turllib.parseturllib.requestturllib.errorthttp.clienttclienttrequestt
xmlrpc.clientthtml.parsert
html.entitiestentitiestinputtsslR,R-R*R@R;RLRMRRTtF_OKtX_OKtzipfileRyR�R	R{tBaseZipExtFileRkR�R�R�t	NameErrortcollectionsR�R�R�R�tgetfilesystemencodingR�R�ttokenizeR�tcodecsR�R�R%R�R�thtmlR4tcgiR�R�R�treprlibR�R�timpR�R�tthreadR�R
tdummy_threadt_abcollR�R�R�R�tlogging.configRRtIRRR�R�R R$R!(((sK/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/compat.pyt<module>s	(4	F	@L
	
)

A	





	

			
	
	
[


b



 
�
	


Zerion Mini Shell 1.0