403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/twisted/python/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/twisted/python/versions.pyc
ó
[³XMc@svdZddlZddlZdefd„ƒYZeƒZdefd„ƒYZdefd„ƒYZd	„ZdS(
s0
Versions for Python packages.

See L{Version}.
iÿÿÿÿNt_infcBseZdZd„ZRS(s:
    An object that is bigger than all other objects.
    cCs|tkrdSdS(s‘
        @param other: Another object.
        @type other: any

        @return: 0 if other is inf, 1 otherwise.
        @rtype: C{int}
        ii(R(tselftother((s;/usr/lib/python2.7/dist-packages/twisted/python/versions.pyt__cmp__s(t__name__t
__module__t__doc__R(((s;/usr/lib/python2.7/dist-packages/twisted/python/versions.pyRstIncomparableVersionscBseZdZRS(s-
    Two versions could not be compared.
    (RRR(((s;/usr/lib/python2.7/dist-packages/twisted/python/versions.pyR!stVersioncBsweZdZdd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d„ZeZeZ
d	„Zd
„ZRS(s
    An object that represents a three-part version number.

    If running from an svn checkout, include the revision number in
    the version string.
    cCs1||_||_||_||_||_dS(s¥
        @param package: Name of the package that this is a version of.
        @type package: C{str}
        @param major: The major version number.
        @type major: C{int}
        @param minor: The minor version number.
        @type minor: C{int}
        @param micro: The micro version number.
        @type micro: C{int}
        @param prerelease: The prerelease number.
        @type prerelease: C{int}
        N(tpackagetmajortminortmicrot
prerelease(RR	R
RRR
((s;/usr/lib/python2.7/dist-packages/twisted/python/versions.pyt__init__-s

				cCs9|jƒ}|jƒ}|r5|dt|ƒ7}n|S(so
        Return a string in canonical short version format,
        <major>.<minor>.<micro>[+rSVNVer].
        s+r(tbaset_getSVNVersiontstr(Rtstsvnver((s;/usr/lib/python2.7/dist-packages/twisted/python/versions.pytshortAs
cCsE|jdkrd}nd|jf}d|j|j|j|fS(s:
        Like L{short}, but without the +rSVNVer.
        tspre%ss
%d.%d.%d%sN(R
tNoneR
RR(Rtpre((s;/usr/lib/python2.7/dist-packages/twisted/python/versions.pyRMs		cCsv|jƒ}|rd|}n|jdkr7d}nd|jf}d|jj|j|j|j|j||fS(Ns  #Rs, prerelease=%rs%s(%r, %d, %d, %d%s)%s(	t_formatSVNVersionR
Rt	__class__RR	R
RR(RRR
((s;/usr/lib/python2.7/dist-packages/twisted/python/versions.pyt__repr__[s
		cCsd|j|jƒfS(Ns[%s, version %s](R	R(R((s;/usr/lib/python2.7/dist-packages/twisted/python/versions.pyt__str__mscCsÆt||jƒstS|j|jkrGtd|j|jfƒ‚n|jdkr_t}n	|j}|jdkr€t}n	|j}t|j	|j
|j|f|j	|j
|j|fƒ}|S(sG
        Compare two versions, considering major versions, minor versions, micro
        versions, then prereleases.

        A version with a prerelease is always less than a version without a
        prerelease. If both versions have prereleases, they will be included in
        the comparison.

        @param other: Another version.
        @type other: L{Version}

        @return: NotImplemented when the other object is not a Version, or one
            of -1, 0, or 1.

        @raise IncomparableVersions: when the package names of the versions
            differ.
        s%r != %rN(t
isinstanceRtNotImplementedR	RR
RRtcmpR
RR(RRR
totherpretx((s;/usr/lib/python2.7/dist-packages/twisted/python/versions.pyRss(					cCsqddlm}||ƒj}xK|jD]@}t|dƒr)|jdƒ}|dk	ri|jdƒSq)q)WdS(sû
        Given a readable file object which represents a .svn/entries file in
        format version 4, return the revision as a string.  We do this by
        reading first XML element in the document that has a 'revision'
        attribute.
        iÿÿÿÿ(tparsetgetAttributetrevisiontasciiN(txml.dom.minidomR!tdocumentElementt
childNodesthasattrR"Rtencode(RtentriesFileR!tdoctnodetrev((s;/usr/lib/python2.7/dist-packages/twisted/python/versions.pyt_parseSVNEntries_4 scCs.|jƒ|jƒ|jƒ|jƒjƒS(s‘
        Given a readable file object which represents a .svn/entries file in
        format version 8, return the revision as a string.
        (treadlinetstrip(RR*((s;/usr/lib/python2.7/dist-packages/twisted/python/versions.pyt_parseSVNEntries_8°s


cCstjj|jƒ}|rtjjtjj|jƒdƒ}tjj	|ƒsUdStjj|dƒ}tjj	|ƒr­t|ƒjƒj
ƒ}t|d|dƒ}n	|j}|dkrÆdStjj|dƒ}t|ƒ}y z||ƒSWd|jƒXWqdSXndS(s?
        Figure out the SVN revision number based on the existance of
        <package>/.svn/entries, and its contents. This requires discovering the
        format version from the 'format' file and parsing the entries file
        accordingly.

        @return: None or string containing SVN Revision number.
        s.svntformatt_parseSVNEntries_tUnknowntentriesN(tsystmodulestgetR	tostpathtjointdirnamet__file__texistsRtfiletreadR0tgetattrt_parseSVNEntriesTenPlustclose(Rtmodtsvnt
formatFileR2tparserR*R5((s;/usr/lib/python2.7/dist-packages/twisted/python/versions.pyRÁs(	$	cCs'|jƒ}|dkrdSd|fS(NRs
 (SVN r%s)(RR(Rtver((s;/usr/lib/python2.7/dist-packages/twisted/python/versions.pyRésN(RRRRRRRRRRR.R1t_parseSVNEntries_9RBRR(((s;/usr/lib/python2.7/dist-packages/twisted/python/versions.pyR&s					-		
	(cCsd|j|jƒf}|S(s®
    Get a friendly string for the given version object.

    @param version: A L{Version} object.
    @return: A string containing the package and short version number.
    s%s %s(R	R(tversiontresult((s;/usr/lib/python2.7/dist-packages/twisted/python/versions.pytgetVersionStringñs(	RR6R9tobjectRt	TypeErrorRRRL(((s;/usr/lib/python2.7/dist-packages/twisted/python/versions.pyt<module>	s	Ë

Youez - 2016 - github.com/yon3zu
LinuXploit