HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/pip/_internal/utils/__pycache__/urls.cpython-37.pyc
B

r�Re��@shddlZddlZddlmZddlmZddlmZerLddl	m
Z
mZmZdd�Z
dd	�Zd
d�ZdS)�N)�parse)�request)�MYPY_CHECK_RUNNING)�Optional�Text�UnioncCs d|krdS|�dd�d��S)N�:�r)�split�lower)�url�r
��/builddir/build/BUILDROOT/alt-python37-pip-20.2.4-6.el7.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/utils/urls.py�get_url_scheme
srcCs*tj�tj�|��}t�dt�|��}|S)zh
    Convert a path to a file: URL.  The path will be made absolute and have
    quoted path parts.
    zfile:)�os�path�normpath�abspath�urllib_parse�urljoin�urllib_request�pathname2url)rrr
r
r�path_to_urlsrcCsz|�d�stdjft����t�|�\}}}}}|r<|dkrBd}n&tjdkrVd|}ntdjft����t	�
||�}|S)z(
    Convert a file: URL to a path.
    zfile:z9You can only turn file: urls into filenames (not {url!r})�	localhost��win32z\\z?non-local file URIs are not supported on this platform: {url!r})�
startswith�AssertionError�format�localsr�urlsplit�sys�platform�
ValueErrorr�url2pathname)r�_�netlocrr
r
r�url_to_paths



r')rr!Zpip._vendor.six.moves.urllibrrrr�pip._internal.utils.typingr�typingrrrrrr'r
r
r
r�<module>s