HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/pip/_internal/utils/__pycache__/packaging.cpython-310.pyc
o

��hA�@srddlmZddlZddlZddlmZmZddlmZe�	e
�Zejdd�dd
d��Z
ejdd�ddd��ZdS)�)�annotationsN)�
specifiers�version��Requirement� )�maxsize�requires_python�
str | None�version_info�tuple[int, ...]�return�boolcCs4|durdSt�|�}t�d�tt|���}||vS)a�
    Check if the given Python version matches a "Requires-Python" specifier.

    :param version_info: A 3-tuple of ints representing a Python
        major-minor-micro version to check (e.g. `sys.version_info[:3]`).

    :return: `True` if the given Python version satisfies the requirement.
        Otherwise, return `False`.

    :raises InvalidSpecifier: If `requires_python` has an invalid format.
    NT�.)r�SpecifierSetr�parse�join�map�str)r	r�requires_python_specifier�python_version�r�H/usr/local/lib/python3.10/dist-packages/pip/_internal/utils/packaging.py�check_requires_pythons

ri'�
req_stringrrcCst|�S)z5Construct a packaging.Requirement object with cachingr)rrrr�get_requirement$sr)r	r
rrr
r)rrr
r)�
__future__r�	functools�logging�pip._vendor.packagingrr�"pip._vendor.packaging.requirementsr�	getLogger�__name__�logger�	lru_cacherrrrrr�<module>s