ok

Mini Shell

Direktori : /lib/python2.7/site-packages/pip/_vendor/packaging/
Upload File :
Current File : //lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyc

�
��abc@`suddlmZmZmZddlZddlZddlZddlZddlm	Z	m
Z
mZmZddlm
Z
mZmZmZddlmZddlmZddlmZmZd	d
ddd
gZd	efd��YZd
efd��YZdefd��YZdefd��YZdefd��YZdefd��YZ defd��YZ!ed�ed�Bed�Bed�Bed�Bed�Bed�Bed �Bed!�Bed"�Bed#�Bed$�Bed%�Bed&�Bed'�Bed(�Bed)�Bed*�BZ"id#d$6d"d%6dd&6dd'6dd(6dd)6Z#e"j$d+��ed,�ed-�Bed.�Bed/�Bed0�Bed1�Bed2�Bed3�BZ%e%ed4�Bed5�BZ&e&j$d6��ed7�ed8�BZ'e'j$d9��ed:�ed;�BZ(e"e'BZ)ee)e&e)�Z*e*j$d<��ed=�j+�Z,ed>�j+�Z-e�Z.e*ee,e.e-�BZ/e.e/e
e(e.�>ee.eZ0d?�Z1e2d@�Z3idA�d56dB�d46ej4d36ej5d/6ej6d-6ej7d06ej8d.6ej9d26Z:dC�Z;e�Z<dD�Z=dE�Z>dF�Z?dG�Z@defdH��YZAdS(Ii(tabsolute_importtdivisiontprint_functionN(tParseExceptiontParseResultststringStartt	stringEnd(t
ZeroOrMoretGrouptForwardtQuotedString(tLiterali(tstring_types(t	SpecifiertInvalidSpecifiert
InvalidMarkertUndefinedComparisontUndefinedEnvironmentNametMarkertdefault_environmentcB`seZdZRS(sE
    An invalid marker was found, users should refer to PEP 508.
    (t__name__t
__module__t__doc__(((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyRscB`seZdZRS(sP
    An invalid operation was attempted on a value that doesn't support it.
    (RRR(((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyR!scB`seZdZRS(s\
    A name was attempted to be used that does not exist inside of the
    environment.
    (RRR(((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyR'stNodecB`s,eZd�Zd�Zd�Zd�ZRS(cC`s
||_dS(N(tvalue(tselfR((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyt__init__0scC`s
t|j�S(N(tstrR(R((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyt__str__3scC`sdj|jjt|��S(Ns<{0}({1!r})>(tformatt	__class__RR(R((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyt__repr__6scC`s
t�dS(N(tNotImplementedError(R((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyt	serialize9s(RRRRRR!(((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyR.s			tVariablecB`seZd�ZRS(cC`s
t|�S(N(R(R((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyR!?s(RRR!(((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyR"=stValuecB`seZd�ZRS(cC`s
dj|�S(Ns"{0}"(R(R((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyR!Es(RRR!(((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyR#CstOpcB`seZd�ZRS(cC`s
t|�S(N(R(R((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyR!Ks(RRR!(((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyR$Istimplementation_versiontplatform_python_implementationtimplementation_nametpython_full_versiontplatform_releasetplatform_versiontplatform_machinetplatform_systemtpython_versiontsys_platformtos_namesos.namessys.platformsplatform.versionsplatform.machinesplatform.python_implementationtpython_implementationtextracC`sttj|d|d��S(Ni(R"tALIASEStget(tstltt((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyt<lambda>kts===s==s>=s<=s!=s~=t>t<snot intincC`st|d�S(Ni(R$(R4R5R6((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyR7yR8t't"cC`st|d�S(Ni(R#(R4R5R6((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyR7|R8tandtorcC`st|d�S(Ni(ttuple(R4R5R6((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyR7�R8t(t)cC`s4t|t�r,g|D]}t|�^qS|SdS(N(t
isinstanceRt_coerce_parse_result(tresultsti((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyRD�scC`s�t|tttf�st�t|t�rft|�dkrft|dttf�rft|d�St|t�r�d�|D�}|r�dj|�Sddj|�dSn9t|t�r�djg|D]}|j�^q��S|SdS(Niics`s!|]}t|dt�VqdS(tfirstN(t_format_markertFalse(t.0tm((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pys	<genexpr>�st RARB(	RCtlistR@RtAssertionErrortlenRHtjoinR!(tmarkerRGtinnerRK((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyRH�s!
&cC`s
||kS(N((tlhstrhs((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyR7�R8cC`s
||kS(N((RSRT((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyR7�R8cC`s�y%tdj|j�|g��}Wntk
r8nX|j|�Stj|j��}|dkr�tdj	|||���n|||�S(NR8s#Undefined {0!r} on {1!r} and {2!r}.(
R
RPR!Rtcontainst
_operatorsR3tNoneRR(RStopRTtspectoper((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyt_eval_op�s%

cC`s:|j|t�}|tkr6tdj|���n|S(Ns/{0!r} does not exist in evaluation environment.(R3t
_undefinedRR(tenvironmenttnameR((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyt_get_env�s
c	C`s,gg}x|D]}t|tttf�s4t�t|t�r`|djt||��qt|t�r�|\}}}t|t�r�t||j	�}|j	}n|j	}t||j	�}|djt
|||��q|dks�t�|dkr|jg�qqWtd�|D��S(Ni����R>R?cs`s|]}t|�VqdS(N(tall(RJtitem((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pys	<genexpr>�s(R>R?(RCRMR@RRNtappendt_evaluate_markersR"R_RR[tany(	tmarkersR]tgroupsRQRSRXRTt	lhs_valuet	rhs_value((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyRc�s"	
	 cC`sFdj|�}|j}|dkrB||dt|j�7}n|S(Ns{0.major}.{0.minor}.{0.micro}tfinali(RtreleaselevelRtserial(tinfotversiontkind((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pytformat_full_version�s
	cC`s�ttd�r0ttjj�}tjj}nd}d}i|d6|d6tjd6tj�d6tj	�d6tj
�d	6tj�d
6tj�d6tj�d6tj�d
 d6tjd6S(Ntimplementationt0R8R'R%R/R+R)R,R*R(R&iR-R.(
thasattrtsysRoRpRmR^tostplatformtmachinetreleasetsystemR-R0(tiverR'((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyR�s"






cB`s/eZd�Zd�Zd�Zdd�ZRS(cC`seyttj|��|_WnBtk
r`}dj|||j|jd!�}t|��nXdS(Ns+Invalid marker: {0!r}, parse error at {1!r}i(RDtMARKERtparseStringt_markersRRtlocR(RRQteterr_str((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyRscC`s
t|j�S(N(RHR|(R((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyRscC`sdjt|��S(Ns<Marker({0!r})>(RR(R((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyRscC`s5t�}|dk	r%|j|�nt|j|�S(s$Evaluate a marker.

        Return the boolean from evaluating the given marker against the
        environment. environment is an optional argument to override all or
        part of the determined environment.

        The environment is determined from the current Python process.
        N(RRWtupdateRcR|(RR]tcurrent_environment((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pytevaluate"s		N(RRRRRRWR�(((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyRs			(Bt
__future__RRRtoperatorRtRuRstpip._vendor.pyparsingRRRRRRR	R
RtLt_compatRt
specifiersR
Rt__all__t
ValueErrorRRRtobjectRR"R#R$tVARIABLER2tsetParseActiontVERSION_CMPt	MARKER_OPtMARKER_VALUEtBOOLOPt
MARKER_VARtMARKER_ITEMtsuppresstLPARENtRPARENtMARKER_EXPRtMARKER_ATOMRzRDtTrueRHtlttleteqtnetgetgtRVR[R\R_RcRoRR(((sA/usr/lib/python2.7/site-packages/pip/_vendor/packaging/markers.pyt<module>s|""	�

	E

		







						

Zerion Mini Shell 1.0