AlkantarClanX12

Your IP : 18.116.20.108


Current Path : /opt/alt/python38/lib64/python3.8/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python38/lib64/python3.8/distutils/__pycache__/version.cpython-38.opt-2.pyc

U

i�f90�@s:ddlZGdd�d�ZGdd�de�ZGdd�de�ZdS)�Nc@sFeZdZddd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dS)�VersionNcCs|r|�|�dS�N��parse��self�vstring�r	�6/opt/alt/python38/lib64/python3.8/distutils/version.py�__init__&szVersion.__init__cCsd|jjt|�fS)Nz	%s ('%s'))�	__class__�__name__�str�rr	r	r
�__repr__*szVersion.__repr__cCs|�|�}|tkr|S|dkS�Nr��_cmp�NotImplemented�r�other�cr	r	r
�__eq__-s
zVersion.__eq__cCs|�|�}|tkr|S|dkSrrrr	r	r
�__lt__3s
zVersion.__lt__cCs|�|�}|tkr|S|dkSrrrr	r	r
�__le__9s
zVersion.__le__cCs|�|�}|tkr|S|dkSrrrr	r	r
�__gt__?s
zVersion.__gt__cCs|�|�}|tkr|S|dkSrrrr	r	r
�__ge__Es
zVersion.__ge__)N)
r
�
__module__�__qualname__rrrrrrrr	r	r	r
rs
rc@s8eZdZe�dejejB�Zdd�Zdd�Z	dd�Z
dS)	�
StrictVersionz)^(\d+) \. (\d+) (\. (\d+))? ([ab](\d+))?$cCs�|j�|�}|std|��|�ddddd�\}}}}}|rTttt|||g��|_nttt||g��d|_|r�|dt|�f|_nd|_dS)	Nzinvalid version number '%s'�����)rr)	�
version_re�match�
ValueError�group�tuple�map�int�version�
prerelease)rrr&�major�minorZpatchr-Zprerelease_numr	r	r
r�s�zStrictVersion.parsecCsb|jddkr*d�tt|jdd���}nd�tt|j��}|jr^||jdt|jd�}|S)Nr!r�.r )r,�joinr*rr-rr	r	r
�__str__�szStrictVersion.__str__cCs�t|t�rt|�}|j|jkr2|j|jkr.dSdS|jsB|jsBdS|jrR|jsRdS|jsb|jrbdS|jr�|jr�|j|jkr~dS|j|jkr�dSdSndS)N���r r)�
isinstancerrr,r-�rrr	r	r
r�s&
zStrictVersion._cmpN)r
rr�re�compile�VERBOSE�ASCIIr%rr2rr	r	r	r
r]s%
�
rc@sDeZdZe�dej�Zd
dd�Zdd�Zdd�Z	d	d
�Z
dd�ZdS)�LooseVersionz(\d+ | [a-z]+ | \.)NcCs|r|�|�dSrrrr	r	r
r.szLooseVersion.__init__c	Cs^||_dd�|j�|�D�}t|�D].\}}zt|�||<Wq$tk
rPYq$Xq$||_dS)NcSsg|]}|r|dkr|�qS)r0r	)�.0�xr	r	r
�
<listcomp>8s�z&LooseVersion.parse.<locals>.<listcomp>)r�component_re�split�	enumerater+r'r,)rrZ
components�i�objr	r	r
r3szLooseVersion.parsecCs|jSr)rrr	r	r
r2CszLooseVersion.__str__cCsdt|�S)NzLooseVersion ('%s'))rrr	r	r
rGszLooseVersion.__repr__cCsFt|t�rt|�}|j|jkr"dS|j|jkr2dS|j|jkrBdSdS)Nrr3r )r4rr:r,r5r	r	r
rKs
zLooseVersion._cmp)N)r
rrr6r7r8r>rrr2rrr	r	r	r
r:s!
r:)r6rrr:r	r	r	r
�<module>s>/