| 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 : |
ó
[³XMc @ sv d Z d d l Z d d l Z d e f d „ ƒ YZ e ƒ Z d e f d „ ƒ YZ d e f d „ ƒ YZ d „ Z d S(
s0
Versions for Python packages.
See L{Version}.
iÿÿÿÿNt _infc B s e Z d Z d „ Z RS( s:
An object that is bigger than all other objects.
c C s | t k r d Sd S( s‘
@param other: Another object.
@type other: any
@return: 0 if other is inf, 1 otherwise.
@rtype: C{int}
i i ( R ( t selft other( ( 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.pyR s t IncomparableVersionsc B s e Z d Z RS( s-
Two versions could not be compared.
( R R R ( ( ( s; /usr/lib/python2.7/dist-packages/twisted/python/versions.pyR ! s t Versionc B sw e Z d Z d d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d „ Z e Z e Z
d „ Z d
„ Z RS( s
An object that represents a three-part version number.
If running from an svn checkout, include the revision number in
the version string.
c C s1 | | _ | | _ | | _ | | _ | | _ d S( 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( t packaget majort minort microt
prerelease( R R R
R R R
( ( s; /usr/lib/python2.7/dist-packages/twisted/python/versions.pyt __init__- s
c C s9 | j ƒ } | j ƒ } | r5 | d t | ƒ 7} n | S( so
Return a string in canonical short version format,
<major>.<minor>.<micro>[+rSVNVer].
s +r( t baset _getSVNVersiont str( R t st svnver( ( s; /usr/lib/python2.7/dist-packages/twisted/python/versions.pyt shortA s
c C sE | j d k r d } n d | j f } d | j | j | j | f S( s:
Like L{short}, but without the +rSVNVer.
t s pre%ss
%d.%d.%d%sN( R
t NoneR
R R ( R t pre( ( s; /usr/lib/python2.7/dist-packages/twisted/python/versions.pyR M s c C sv | j ƒ } | r d | } n | j d k r7 d } n d | j f } d | j j | j | j | j | j | | f S( Ns #R s , prerelease=%rs %s(%r, %d, %d, %d%s)%s( t _formatSVNVersionR
R t __class__R R R
R R ( R R R
( ( s; /usr/lib/python2.7/dist-packages/twisted/python/versions.pyt __repr__[ s
c C s d | j | j ƒ f S( Ns [%s, version %s]( R R ( R ( ( s; /usr/lib/python2.7/dist-packages/twisted/python/versions.pyt __str__m s c C sÆ t | | j ƒ s t S| j | j k rG t d | j | j f ƒ ‚ n | j d k r_ t } n | j } | j d k r€ 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
isinstanceR t NotImplementedR R R
R R t cmpR
R R ( R R R
t otherpret x( ( s; /usr/lib/python2.7/dist-packages/twisted/python/versions.pyR s s( c C sq d d l m } | | ƒ j } xK | j D]@ } t | d ƒ r) | j d ƒ } | d k ri | j d ƒ Sq) q) Wd S( 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ÿÿÿÿ( t parset getAttributet revisiont asciiN( t xml.dom.minidomR! t documentElementt
childNodest hasattrR"