HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-87-generic #88-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 09:28:41 UTC 2025 x86_64
User: wpuser (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pip/_internal/utils/__pycache__/compat.cpython-312.pyc
�

��h\����dZddlZddlZddlZgd�Zej
e�Zdefd�Z	de
defd�Zhd�Z
ejjd	�xs ejd
k(xrej dk(Zy)zKStuff that differs in different Python versions and platform
distributions.�N)�get_path_uid�stdlib_pkgs�WINDOWS�returnc�<�	ddl}y#t$rYnwxYwddlm}|S)NrT)�IS_PYOPENSSL)�_ssl�ImportError�pip._vendor.urllib3.utilr)r	rs  �</usr/lib/python3/dist-packages/pip/_internal/utils/compat.py�has_tlsr
s*��
�����
��
��6��s��	��pathc��ttd�rktj|tjtjz�}tj
|�j}tj|�|Stjj|�s!tj|�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_uids   rrrs����r�<� �
�W�W�T�2�;�;����6�
7���8�8�B�<�&�&��
������O�
�w�w�~�~�d�#��w�w�t�}�+�+�H��O��T�F�"Q�R�S�S�>�python�wsgiref�argparse�win�cli�nt)�__doc__�loggingr�sys�__all__�	getLogger�__name__�logger�boolr
�str�intrr�platform�
startswith�namer�rr�<module>r2s�����	�
�
4��
��	�	�8�	$��
��
��s��s��@0���,�,�
!�
!�%�
(�
W�S�\�\�U�-B�-V�r�w�w�RV��r