관리-도구
편집 파일: compat.cpython-38.pyc
U &?�f_ � @ s� d Z ddlZddlZddlZddlZddlmZ dddgZe� e �Zed�dd �Z eed �dd�Zejdk rvejjZndeeeeee d�dd�ZdddhZej�d�p�ejdko�ejdkZdS )zKStuff that differs in different Python versions and platform distributions.� N)�IO�get_path_uid�stdlib_pkgs�WINDOWS)�returnc C s4 zdd l } W dS tk r" Y nX ddlm} |S )Nr T)�IS_PYOPENSSL)�_ssl�ImportError�pip._vendor.urllib3.utilr )r r � r �H/opt/hc_python/lib/python3.8/site-packages/pip/_internal/utils/compat.py�has_tls s r )�pathr c C sb t td�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 r r s )� � �utf-8�strict)�package�resource�encoding�errorsr c C s t j�| �| jd||d�S )N�r)r"