Hacked By AnonymousFox

Current Path : /proc/thread-self/root/proc/self/root/lib/python2.7/site-packages/setuptools/_vendor/packaging/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyo

�
�fc@`snddlmZmZmZddlZddlZddlZddlmZddddd	gZ	ej
d
ddd
dddg�Zd�Zde
fd��YZdefd��YZdefd��YZejdej�Zidd6dd6dd6dd6dd
6Zd�Zd�ZdZdefd ��YZd!�Zejd"�Zd#�Zd$�ZdS(%i(tabsolute_importtdivisiontprint_functionNi(tInfinitytparsetVersiont
LegacyVersiontInvalidVersiontVERSION_PATTERNt_VersiontepochtreleasetdevtpretposttlocalcC`s-yt|�SWntk
r(t|�SXdS(s�
    Parse the given version string and return either a :class:`Version` object
    or a :class:`LegacyVersion` object depending on if the given version is
    a valid PEP 440 version or a legacy version.
    N(RRR(tversion((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyRs
cB`seZdZRS(sF
    An invalid version was found, users should refer to PEP 440.
    (t__name__t
__module__t__doc__(((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyR$st_BaseVersioncB`sPeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(cC`s
t|j�S(N(thasht_key(tself((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyt__hash__,scC`s|j|d��S(NcS`s
||kS(N((tsto((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyt<lambda>0t(t_compare(Rtother((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyt__lt__/scC`s|j|d��S(NcS`s
||kS(N((RR((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyR3R(R(RR((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyt__le__2scC`s|j|d��S(NcS`s
||kS(N((RR((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyR6R(R(RR((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyt__eq__5scC`s|j|d��S(NcS`s
||kS(N((RR((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyR9R(R(RR((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyt__ge__8scC`s|j|d��S(NcS`s
||kS(N((RR((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyR<R(R(RR((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyt__gt__;scC`s|j|d��S(NcS`s
||kS(N((RR((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyR?R(R(RR((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyt__ne__>scC`s&t|t�stS||j|j�S(N(t
isinstanceRtNotImplementedR(RRtmethod((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyRAs(
RRRRR R!R"R#R$R(((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyR*s							cB`sneZd�Zd�Zd�Zed��Zed��Zed��Zed��Z	ed��Z
RS(cC`s%t|�|_t|j�|_dS(N(tstrt_versiont_legacy_cmpkeyR(RR((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyt__init__JscC`s|jS(N(R)(R((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyt__str__NscC`sdjtt|���S(Ns<LegacyVersion({0})>(tformattreprR((R((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyt__repr__QscC`s|jS(N(R)(R((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pytpublicTscC`s|jS(N(R)(R((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pytbase_versionXscC`sdS(N(tNone(R((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyR\scC`stS(N(tFalse(R((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyt
is_prerelease`scC`stS(N(R3(R((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pytis_postreleaseds(RRR+R,R/tpropertyR0R1RR4R5(((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyRHs			s(\d+ | [a-z]+ | \.| -)tctpreviewsfinal-t-trct@cc`sxxltj|�D][}tj||�}|s|dkrAqn|d dkrb|jd�Vqd|VqWdVdS(Nt.it
0123456789it*s*final(t_legacy_version_component_retsplitt_legacy_version_replacement_maptgettzfill(Rtpart((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyt_parse_version_partsrs
cC`s�d}g}x�t|j��D]�}|jd�r�|dkrjx'|rf|ddkrf|j�qCWnx'|r�|ddkr�|j�qmWn|j|�qWt|�}||fS(Ni����R>s*finals*final-t00000000(REtlowert
startswithtpoptappendttuple(RR
tpartsRD((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyR*�ss�
    v?
    (?:
        (?:(?P<epoch>[0-9]+)!)?                           # epoch
        (?P<release>[0-9]+(?:\.[0-9]+)*)                  # release segment
        (?P<pre>                                          # pre-release
            [-_\.]?
            (?P<pre_l>(a|b|c|rc|alpha|beta|pre|preview))
            [-_\.]?
            (?P<pre_n>[0-9]+)?
        )?
        (?P<post>                                         # post release
            (?:-(?P<post_n1>[0-9]+))
            |
            (?:
                [-_\.]?
                (?P<post_l>post|rev|r)
                [-_\.]?
                (?P<post_n2>[0-9]+)?
            )
        )?
        (?P<dev>                                          # dev release
            [-_\.]?
            (?P<dev_l>dev)
            [-_\.]?
            (?P<dev_n>[0-9]+)?
        )?
    )
    (?:\+(?P<local>[a-z0-9]+(?:[-_\.][a-z0-9]+)*))?       # local version
cB`s�eZejdedejejB�Zd�Zd�Z	d�Z
ed��Zed��Z
ed��Zed��Zed	��ZRS(
s^\s*s\s*$cC`s[|jj|�}|s0tdj|���ntd|jd�rZt|jd��nddtd�|jd�jd�D��dt	|jd�|jd	��d
t	|jd�|jd�p�|jd
��dt	|jd�|jd��dt
|jd���|_t|jj
|jj|jj|jj|jj|jj�|_dS(NsInvalid version: '{0}'R
iRcs`s|]}t|�VqdS(N(tint(t.0ti((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pys	<genexpr>�sR<R
tpre_ltpre_nRtpost_ltpost_n1tpost_n2Rtdev_ltdev_nR(t_regextsearchRR-R	tgroupRMRKR@t_parse_letter_versiont_parse_local_versionR)t_cmpkeyR
RR
RRRR(RRtmatch((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyR+�s.*(!					cC`sdjtt|���S(Ns<Version({0})>(R-R.R((R((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyR/�scC`sSg}|jjdkr7|jdj|jj��n|jdjd�|jjD���|jjdk	r�|jdjd�|jjD���n|jjdk	r�|jdj|jjd��n|jj	dk	r|jd	j|jj	d��n|jj
dk	rF|jd
jdjd�|jj
D����ndj|�S(Nis{0}!R<cs`s|]}t|�VqdS(N(R((RNtx((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pys	<genexpr>�sRcs`s|]}t|�VqdS(N(R((RNR^((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pys	<genexpr>�ss.post{0}is.dev{0}s+{0}cs`s|]}t|�VqdS(N(R((RNR^((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pys	<genexpr>s(R)R
RJR-tjoinRR
R2RRR(RRL((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyR,�s&)##,cC`st|�jdd�dS(Nt+ii(R(R@(R((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyR0
scC`sjg}|jjdkr7|jdj|jj��n|jdjd�|jjD���dj|�S(Nis{0}!R<cs`s|]}t|�VqdS(N(R((RNR^((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pys	<genexpr>sR(R)R
RJR-R_R(RRL((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyR1s
&cC`s0t|�}d|kr,|jdd�dSdS(NR`i(R(R@(Rtversion_string((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyRscC`st|jjp|jj�S(N(tboolR)RR
(R((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyR4!scC`st|jj�S(N(RbR)R(R((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyR5%s(RRtretcompileRtVERBOSEt
IGNORECASERWR+R/R,R6R0R1RR4R5(((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyR�s	#		
cC`s�|r�|dkrd}n|j�}|dkr<d}n?|dkrQd}n*|d
krfd	}n|dkr{d}n|t|�fS|r�|r�d}|t|�fSdS(NitalphatatbetatbR7R
R8R:trevtrR(R7R
R8(RkRl(R2RGRM(tlettertnumber((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyRZ*s 					
s[\._-]cC`s-|dk	r)td�tj|�D��SdS(sR
    Takes a string like abc.1.twelve and turns it into ("abc", 1, "twelve").
    cs`s3|])}|j�s!|j�n	t|�VqdS(N(tisdigitRGRM(RNRD((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pys	<genexpr>RsN(R2RKt_local_version_seperatorsR@(R((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyR[LscC`s�ttttjd�t|�����}|dkr[|dkr[|dk	r[t}n|dkrpt}n|dkr�t}n|dkr�t}n|dkr�t}ntd�|D��}||||||fS(NcS`s
|dkS(Ni((R^((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyR`Rcs`s7|]-}t|t�r$|dfn
t|fVqdS(RN(R%RMR(RNRO((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pys	<genexpr>�s(RKtreversedtlistt	itertoolst	dropwhileR2R(R
RR
RRR((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyR\Ws&	$
	
	
	
(t
__future__RRRtcollectionsRsRct_structuresRt__all__t
namedtupleR	Rt
ValueErrorRtobjectRRRdReR?RARER*RRRZRpR[R\(((sH/usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/version.pyt<module>s0	!&		9k		

Hacked By AnonymousFox1.0, Coded By AnonymousFox