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/osm/venv/lib64/python3.10/site-packages/pip/_internal/utils/__pycache__/urls.cpython-310.pyc
o

5iA�@sTddlZddlZddlZddlZddlmZdedefdd�Zdedefd	d
�Z	dS)�N�)�WINDOWS�path�returncCs.tj�tj�|��}tj�dtj�|��}|S)zh
    Convert a path to a file: URL.  The path will be made absolute and have
    quoted path parts.
    zfile://)	�osr�normpath�abspath�urllib�parse�urljoin�request�pathname2url)r�url�r�F/opt/osm/venv/lib/python3.10/site-packages/pip/_internal/utils/urls.py�path_to_url	srrcCs�|�d�s
Jd|�d���tj�|�\}}}}}|r|dkr!d}ntr(d|}ntd|����tj�||�}tr\|s\t|�dkr\|d	d
kr\|dt	j
vr\|dd
�dvr\|dd�}|S)z(
    Convert a file: URL to a path.
    zfile:z1You can only turn file: urls into filenames (not �)�	localhost�z\\z8non-local file URIs are not supported on this platform: �r�/r��)�:z:/N)�
startswithr	r
�urlsplitr�
ValueErrorr�url2pathname�len�string�
ascii_letters)r�_�netlocrrrr�url_to_paths0�
�
���r#)
rr�urllib.parser	�urllib.request�compatr�strrr#rrrr�<module>s