HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/site-packages/pip/_internal/utils/__pycache__/urls.cpython-311.pyc
�

�miA��R�ddlZddlZddlZddlZddlmZdedefd�Zdedefd�Z	dS)	�N�)�WINDOWS�path�returnc��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�urls  �:D:\Python311\Lib\site-packages\pip/_internal/utils/urls.py�path_to_urlr	sS��
�7���B�G�O�O�D�1�1�2�2�D�
�,�
�
�y�&�.�*E�*E�d�*K�*K�
L�
L�C��J�rc���|�d��sJd|�d����tj�|��\}}}}}|r|dkrd}ntrd|z}ntd|�����tj�||z��}trK|sIt|��dkr6|d	d
kr*|dtj
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)�
startswithrr�urlsplitr�
ValueErrorr�url2pathname�len�string�
ascii_letters)r�_�netlocrs    r�url_to_pathr&sE���>�>����D�D�C�3�C�C�C�D�D�D�#�L�1�1�#�6�6��A�v�t�Q���	
�V�{�*�	
����	�
��&�����N�s�N�N�
�
�	
��>�&�&�v��}�5�5�D�	����
��I�I��N��
��G�s�N�	�

��G�v�+�+��
��1��I��$�
��A�B�B�x���Kr)
rr"�urllib.parser�urllib.request�compatr�strrr&�rr�<module>r,s���	�	�	�	�
�
�
�
����������������c��c�����$�S�$�S�$�$�$�$�$�$r