403Webshell
Server IP : 198.38.94.13  /  Your IP : 216.73.217.33
Web Server : Apache
System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : revivere ( 1140)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/saltstack/salt/lib/python3.10/site-packages/looseversion/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/saltstack/salt/lib/python3.10/site-packages/looseversion/__pycache__/__init__.cpython-310.pyc
o

;jp$�@sXdZddlZddlZejdkrGdd�de�ZneZGdd�de�ZGdd	�d	e�ZdS)
a�Provides classes to represent module version numbers (one class for
each style of version numbering).  There are currently two such classes
implemented: StrictVersion and LooseVersion.

Every version number class implements the following interface:
  * the 'parse' method takes a string and parses it to some internal
    representation; if the string is an invalid version number,
    'parse' raises a ValueError exception
  * the class constructor takes an optional string argument which,
    if supplied, is passed to 'parse'
  * __str__ reconstructs the string that was passed to 'parse' (or
    an equivalent string -- ie. one that will generate an equivalent
    version number instance)
  * __repr__ generates Python code to recreate the version number instance
  * _cmp compares the current instance with either another instance
    of the same class or a string (which will be parsed to an instance
    of the same class, thus must follow the same rules)
�N)�cs,eZdZdZ�fdd�Z�fdd�Z�ZS)�_Py2Intz)Integer object that compares < any stringc�t|t�rdSt��|�S)NF)�
isinstance�str�super�__gt__��self�other��	__class__��I/opt/saltstack/salt/lib/python3.10/site-packages/looseversion/__init__.pyr\�
z_Py2Int.__gt__cr)NT)rrr�__lt__r	rrrrarz_Py2Int.__lt__)�__name__�
__module__�__qualname__�__doc__rr�
__classcell__rrrrrYsrc@s|eZdZdZe�dej�Zddd�Zdd�Z	dd	�Z
d
d�Zdd
�Zdd�Z
dd�Zdd�Zdd�Zdd�Zedd��ZdS)�LooseVersiona�Version numbering for anarchists and software realists.
    Implements the standard interface for version number classes as
    described above.  A version number consists of a series of numbers,
    separated by either periods or strings of letters.  When comparing
    version numbers, the numeric components will be compared
    numerically, and the alphabetic components lexically.  The following
    are all valid version numbers, in no particular order:

        1.5.1
        1.5.2b2
        161
        3.10a
        8.02
        3.4j
        1996.07.12
        3.2.pl0
        3.1.1.6
        2g6
        11g
        0.960923
        2.2beta29
        1.13++
        5.5.kw
        2.0b1pl0

    In fact, there is no such thing as an invalid version number under
    this scheme; the rules for comparison are simple and predictable,
    but may not always give the results you want (for some definition
    of "want").
    z(\d+ | [a-z]+ | \.)NcCs|r	|�|�dSdS�N)�parse)r
�vstringrrr�__init__�s�zLooseVersion.__init__cCs|�|�}|turtS|dkS�Nr��_cmp�NotImplemented�r
r�crrr�__eq__��
zLooseVersion.__eq__cCs|�|�}|turtS|dkSrrr rrrr�r#zLooseVersion.__lt__cCs|�|�}|turtS|dkSrrr rrr�__le__�r#zLooseVersion.__le__cCs|�|�}|turtS|dkSrrr rrrr�r#zLooseVersion.__gt__cCs|�|�}|turtS|dkSrrr rrr�__ge__�r#zLooseVersion.__ge__c	C�Z||_dd�|j�|�D�}t|�D]\}}zt|�||<Wqty'Yqw||_dS)NcS�g|]
}|r|dkr|�qS��.r��.0�xrrr�
<listcomp>��z&LooseVersion.parse.<locals>.<listcomp>)r�component_re�split�	enumerate�int�
ValueError�version�r
r�
components�i�objrrrr���
zLooseVersion.parsecCs|jSr)r�r
rrr�__str__�szLooseVersion.__str__cCsdt|�S)NzLooseVersion ('%s'))rr:rrr�__repr__�szLooseVersion.__repr__cCsJ|�|�}|turtS|j|jkrdS|j|jkrdS|j|jkr#dStS)Nr����)�_coercerr4r	rrrr�s
zLooseVersion._cmpcCslt||�r|St|t�r||�Sdtjvr4zddlm}Wnty(tYSwt||�r4|t|��StS)N�	distutilsr)r)rr�sys�modulesZdistutils.versionr�ImportErrorr)�clsrZ
deprecatedrrrr?�s


�
zLooseVersion._coercer)rrrr�re�compile�VERBOSEr/rr"rr$rr%rr;r<r�classmethodr?rrrrrjs

rc@seZdZdZdd�ZdS)�
LooseVersion2z�LooseVersion variant that restores Python 2 semantics

    In Python 2, comparing LooseVersions where paired components could be string
    and int always resulted in the string being "greater". In Python 3, this produced
    a TypeError.
    c	Cr&)NcSr'r(rr*rrrr-�r.z'LooseVersion2.parse.<locals>.<listcomp>)rr/r0r1rr3r4r5rrrr�r9zLooseVersion2.parseN)rrrrrrrrrrI�srI)	rrErA�version_infor2r�objectrrIrrrr�<module>s
Cv

Youez - 2016 - github.com/yon3zu
LinuXploit