HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/python38/lib/python3.8/site-packages/pip/_internal/utils/__pycache__/compat.cpython-38.pyc
U

�{�e\�@s|dZddlZddlZddlZdddgZe�e�Zed�dd�Z	e
ed	�d
d�Zddd
hZ
ej�d�pvejdkovejdkZdS)zKStuff that differs in different Python versions and platform
distributions.�N�get_path_uid�stdlib_pkgs�WINDOWS)�returncCs4zddl}WdStk
r"YnXddlm}|S)NrT)�IS_PYOPENSSL)�_ssl�ImportError�pip._vendor.urllib3.utilr)rr�r
�>/tmp/pip-unpacked-wheel-_0scjqea/pip/_internal/utils/compat.py�has_tlssr)�pathrcCsbttd�r6t�|tjtjB�}t�|�j}t�|�n(tj�	|�sPt�
|�j}nt|�d���|S)a)
    Return path's uid.

    Does not follow symlinks:
        https://github.com/pypa/pip/pull/935#discussion_r5307003

    Placed this function in compat due to differences on AIX and
    Jython, that should eventually go away.

    :raises OSError: When path is a symlink or can't be read.
    �
O_NOFOLLOWz/ is a symlink; Will not return uid for symlinks)�hasattr�os�open�O_RDONLYr�fstat�st_uid�closer
�islink�stat�OSError)r
�fd�file_uidr
r
rrs
�python�wsgiref�argparse�win�cli�nt)�__doc__�loggingr�sys�__all__�	getLogger�__name__�logger�boolr�str�intrr�platform�
startswith�namerr
r
r
r�<module>s