Hacked By AnonymousFox

Current Path : /opt/alt/python37/lib64/python3.7/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/distutils/__pycache__/versionpredicate.cpython-37.opt-2.pyc

B

YI~d
�@s~ddlZddlZddlZe�dej�Ze�d�Ze�d�Zdd�Z	ej
ejejej
ejejd�ZGdd	�d	�Zdad
d�ZdS)�Nz'(?i)^\s*([a-z_]\w*(?:\.[a-z_]\w*)*)(.*)z^\s*\((.*)\)\s*$z%^\s*(<=|>=|<|>|!=|==)\s*([^\s,]+)\s*$cCs6t�|�}|std|��|��\}}|tj�|�fS)Nz"bad package restriction syntax: %r)�re_splitComparison�match�
ValueError�groups�	distutils�version�
StrictVersion)�predZres�compZverStr�r�?/opt/alt/python37/lib64/python3.7/distutils/versionpredicate.py�splitUps

r
)�<z<=z==�>z>=z!=c@s$eZdZdd�Zdd�Zdd�ZdS)�VersionPredicatecCs�|��}|std��t�|�}|s.td|��|��\|_}|��}|r�t�|�}|sbtd|��|��d}dd�|�d�D�|_|js�td|��ng|_dS)	Nzempty package restrictionzbad package name in %rzexpected parenthesized list: %rrcSsg|]}t|��qSr)r
)�.0ZaPredrrr�
<listcomp>tsz-VersionPredicate.__init__.<locals>.<listcomp>�,zempty parenthesized list in %r)	�stripr�re_validPackagerr�name�re_paren�splitr	)�selfZversionPredicateStrrZparen�strrrr�__init__`s$


zVersionPredicate.__init__cCs8|jr.dd�|jD�}|jdd�|�dS|jSdS)NcSs g|]\}}|dt|��qS)� )r)r�cond�verrrrr}sz,VersionPredicate.__str__.<locals>.<listcomp>z (z, �))r	r�join)r�seqrrr�__str__{szVersionPredicate.__str__cCs*x$|jD]\}}t|||�sdSqWdS)NFT)r	�compmap)rrrrrrr�satisfied_by�szVersionPredicate.satisfied_byN)�__name__�
__module__�__qualname__rr"r$rrrrrsArcCsdtdkrt�dtj�a|��}t�|�}|s8td|��|�d�pDd}|rVtj	�
|�}|�d�|fS)Nz=([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(?:\s*\(\s*([^)\s]+)\s*\))?$z"illegal provides specification: %r��)�
_provision_rx�re�compile�ASCIIrrr�grouprrr)�value�mrrrr�split_provision�s
r1)r+Zdistutils.versionr�operatorr,r-rrrr
�lt�le�eq�gt�ge�ner#rr*r1rrrr�<module>s

n

Hacked By AnonymousFox1.0, Coded By AnonymousFox