HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/pip/_internal/utils/__pycache__/urls.cpython-37.pyc
B

��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.el8.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