Your IP : 3.135.206.19


Current Path : /opt/alt/python310/lib64/python3.10/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/distutils/__pycache__/version.cpython-310.opt-2.pyc

o

6��f�0�@s<	ddlZGdd�d�ZGdd�de�ZGdd�de�ZdS)�Nc@sHeZdZ	ddd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dS)�VersionNcC�|r	|�|�dSdS�N��parse��self�vstring�r
�8/opt/alt/python310/lib64/python3.10/distutils/version.py�__init__&��zVersion.__init__cCsd|jjt|�fS)Nz	%s ('%s'))�	__class__�__name__�str�rr
r
r�__repr__*szVersion.__repr__cCs|�|�}|tur|S|dkS�Nr��_cmp�NotImplemented�r�other�cr
r
r�__eq__-�
zVersion.__eq__cCs|�|�}|tur|S|dkSrrrr
r
r�__lt__3rzVersion.__lt__cCs|�|�}|tur|S|dkSrrrr
r
r�__le__9rzVersion.__le__cCs|�|�}|tur|S|dkSrrrr
r
r�__gt__?rzVersion.__gt__cCs|�|�}|tur|S|dkSrrrr
r
r�__ge__ErzVersion.__ge__r)
r�
__module__�__qualname__rrrrrrrr
r
r
rrs
rc@s:eZdZ	e�dejejB�Zdd�Zdd�Z	dd�Z
dS)	�
StrictVersionz)^(\d+) \. (\d+) (\. (\d+))? ([ab](\d+))?$cCs�|j�|�}|std|��|�ddddd�\}}}}}|r*ttt|||g��|_nttt||g��d|_|rC|dt|�f|_dSd|_dS)	Nzinvalid version number '%s'�����)rr)	�
version_re�match�
ValueError�group�tuple�map�int�version�
prerelease)rr	r)�major�minorZpatchr0Zprerelease_numr
r
rr�s�
zStrictVersion.parsecCsb|jddkrd�tt|jdd���}n	d�tt|j��}|jr/||jdt|jd�}|S)Nr$r�.r#)r/�joinr-rr0rr
r
r�__str__�szStrictVersion.__str__cCs�t|t�r
t|�}nt|t�stS|j|jkr!|j|jkrdSdS|js)|js)dS|jr1|js1dS|js9|jr9dS|jrQ|jrS|j|jkrGdS|j|jkrOdSdSdSdS)N���r#r)�
isinstancerr"rr/r0�rrr
r
rr�s*


�zStrictVersion._cmpN)rr r!�re�compile�VERBOSE�ASCIIr(rr5rr
r
r
rr"]s#
�
r"c@sFeZdZ	e�dej�Zd
dd�Zdd�Zdd�Z	d	d
�Z
dd�ZdS)�LooseVersionz(\d+ | [a-z]+ | \.)NcCrrrrr
r
rr0r
zLooseVersion.__init__c	CsZ||_dd�|j�|�D�}t|�D]\}}zt|�||<Wqty'Yqw||_dS)NcSsg|]
}|r|dkr|�qS)r3r
)�.0�xr
r
r�
<listcomp>:s��z&LooseVersion.parse.<locals>.<listcomp>)r	�component_re�split�	enumerater.r*r/)rr	Z
components�i�objr
r
rr5s�
zLooseVersion.parsecCs|jSr)r	rr
r
rr5EszLooseVersion.__str__cCsdt|�S)NzLooseVersion ('%s'))rrr
r
rrIszLooseVersion.__repr__cCsVt|t�r
t|�}nt|t�stS|j|jkrdS|j|jkr!dS|j|jkr)dSdS)Nrr6r#)r7rr=rr/r8r
r
rrMs


�zLooseVersion._cmpr)rr r!r9r:r;rArrr5rrr
r
r
rr=
s
r=)r9rr"r=r
r
r
r�<module>s	>1

?>