HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/site-packages/pip/_internal/utils/__pycache__/packaging.cpython-310.pyc
o

��i<�@s�ddlZddlZddlZddlmZmZmZmZddlm	Z	m
Z
ddlmZede
�Ze�e�Zdee
deedfd	efd
d�Zejdd
�de
d	efdd��Zde
d	efdd�ZdS)�N)�NewType�Optional�Tuple�cast)�
specifiers�version��Requirement�NormalizedExtra�requires_python�version_info.�returncCs4|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)rr�requires_python_specifier�python_version�r�H/usr/local/lib/python3.10/site-packages/pip/_internal/utils/packaging.py�check_requires_pythons

ri)�maxsize�
req_stringcCst|�S)z5Construct a packaging.Requirement object with cachingr)rrrr�get_requirement%sr�extracCsttt�dd|����S)aDConvert an arbitrary string to a standard 'extra' name

    Any runs of non-alphanumeric characters are replaced with a single '_',
    and the result is always lowercased.

    This function is duplicated from ``pkg_resources``. Note that this is not
    the same to either ``canonicalize_name`` or ``_egg_link_name``.
    z[^A-Za-z0-9.-]+�_)rr
�re�sub�lower)rrrr�
safe_extra0s	r!)�	functools�loggingr�typingrrrrZpip._vendor.packagingrr�"pip._vendor.packaging.requirementsr	rr
�	getLogger�__name__�logger�int�boolr�	lru_cacherr!rrrr�<module>s$

�
�
�