Your IP : 3.16.130.151
�
�gF � � � d Z d� Zd� Zy)z�Convert a NT pathname to a file URL and vice versa.
This module only exists to provide OS-specific code
for urllib.requests, thus do not use directly.
c � � ddl }ddl}| dd dk( r| dd } n
| dd dk( r| dd } | dd dk( r| d d } | j d
d� } d| vr+|j j | j dd
� � S | j d� }t
|� dk7 s|d d |j vrd| z }t |� �|d d j � }|j j |d j dd
� � }|d
z |z S )z{OS-specific conversion from a relative URL of the 'file' scheme
to a file system path; not recommended for general use.� N� �///� � z//localhost/� � �:�|�/�\���z Bad URL: )
�string�urllib.parse�replace�parse�unquote�split�len�
ascii_letters�OSError�upper)�urlr �urllib�comp�error�drive�tails �1/opt/alt/python312/lib64/python3.12/nturl2path.py�url2pathnamer s � � �
�2�A�w�%�� �!�"�g�� �S�b��^� #��"�#�h��
�2�A�w�%���!�"�g��
�+�+�c�3�
�C��#�:� �|�|�#�#�C�K�K��T�$:�;�;��9�9�S�>�D�
�4�y�A�~��a����F�,@�,@�@��c�!���e�n����G�B�K����E��<�<����Q�����T� :�;�D��3�;���� c � � ddl }| j dd� } | dd dk( r:| dd } | dd j � dk( r d| dd z } n| d d
dk7 rt d| z � �d| vr|j j | � S | j
dd
�
� }t |� d
k7 st |d � d kD rd| z }t |� �|j j |d j � � }|j j |d � }d|z dz |z S )z{OS-specific conversion from a file system path to a relative URL
of the 'file' scheme; not recommended for general use.r Nr
r � z//?/zUNC/z//r r r
z
Bad path: )�maxsplitr )r r r r r �quoter r )�pr r r r r s r �pathname2urlr'