Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/urls.cpython-312.pyc

�

4Μg?��P�ddlZddlZddlZddlZddlmZdedefd�Zdedefd�Z	y)	�N�)�WINDOWS�path�returnc��tjjtjj|��}tj
j
dtjj|��}|S)zh
    Convert a path to a file: URL.  The path will be made absolute and have
    quoted path parts.
    �file:)	�osr�normpath�abspath�urllib�parse�urljoin�request�pathname2url)r�urls  �C/usr/local/lib/python3.12/site-packages/pip/_internal/utils/urls.py�path_to_urlr	sO��
�7�7���B�G�G�O�O�D�1�2�D�
�,�,�
�
�w����(C�(C�D�(I�
J�C��J�rc��|jd�sJd|�d���tjj|�\}}}}}|r|dk(rd}ntrd|z}ntd|����tjj||z�}tr9|s7t|�dk\r)|d	d
k(r!|dtjvr|dd
dvr|dd}|S)z(
    Convert a file: URL to a path.
    rz1You 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�_�netlocrs    r�url_to_pathr's����>�>���D�	:�3�'��C�D��#�L�L�1�1�#�6��A�v�t�Q���V�{�*���	��&����F�s�g�N�
�	
��>�>�&�&�v��}�5�D�	����I��N���G�s�N���G�v�+�+�+���1�I��$��A�B�x���Kr)
r	r#�urllib.parser�urllib.request�compatr�strrr'�rr�<module>r-s:��	�
�����c��c��$�S�$�S�$r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists