HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/pip/_internal/utils/__pycache__/compat.cpython-310.pyc
o

@%Ne\�@szdZddlZddlZddlZgd�Ze�e�Zdefdd�Z	de
defdd	�Zhd
�Z
ej�d�p:ejdko:ejd
kZdS)zKStuff that differs in different Python versions and platform
distributions.�N)�get_path_uid�stdlib_pkgs�WINDOWS�returncCs2zddl}WdStyYnwddlm}|S)NrT)�IS_PYOPENSSL)�_ssl�ImportError�pip._vendor.urllib3.utilr)rr�r
�</usr/lib/python3/dist-packages/pip/_internal/utils/compat.py�has_tlss�r�pathcCsbttd�rt�|tjtjB�}t�|�j}t�|�|Stj�	|�s*t�
|�j}|St|�d���)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

	��r>�python�wsgiref�argparse�win�cli�nt)�__doc__�loggingr�sys�__all__�	getLogger�__name__�logger�boolr�str�intrr�platform�
startswith�namerr
r
r
r�<module>s

 $