Your IP : 13.59.250.115


Current Path : /opt/alt/python312/lib64/python3.12/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/__pycache__/nturl2path.cpython-312.opt-1.pyc

�

�Q�fG���dZd�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�Z�ddl}ddl}|jdd�}d|vrH|dddk(r|dd}|jd�}|jjd	j
|��S|jd�}t|�dk7s|dd
|jvrd|z}t|��|dd
j�}|djd�}|dz}|D]&}|s�|d	z|jj|�z}�(|jd�r|jd�r|d	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////��/�\���z	Bad URL: �)�string�urllib.parse�replace�split�parse�unquote�join�len�
ascii_letters�OSError�upper�endswith)�urlr�urllib�
components�comp�error�drive�paths        �1/opt/alt/python312/lib64/python3.12/nturl2path.py�url2pathnamer s'�� �

�+�+�c�3�
�C��#�:��r��7�f���a�b�'�C��Y�Y�s�^�
��|�|�#�#�D�I�I�j�$9�:�:��9�9�S�>�D�
�4�y�A�~��a����F�,@�,@�@��c�!���e�n����G�B�K����E��a����s�#�J��3�;�D�����$�;����!5�!5�d�!;�;�D���}�}�S��c�l�l�3�/������K�c��ddl}|dddk(r:|dd}|ddj�dk(r	d|ddz}n|ddd	k7rtd
|z��d	|vrH|dddk(rd|z}|jd�}|jjdj
|��S|jd	d�
�}t|�dk7st|d�dkDrd
|z}t|��|jj|dj��}|djd�}d|zd	z}|D]&}|s�|dz|jj|�z}�(|S)z{OS-specific conversion from a file system path to a relative URL
    of the 'file' scheme; not recommended for general use.rNrz\\?\zUNC\r	rrrz
Bad path: z\\r)�maxsplitz///)r
rrrr�quoterr)�prrrrrrs       r�pathname2urlr&-s[���	��!�u�	��
�a�b�E���R�a�5�;�;�=�G�#��q���u��A�
�q��V�s�]��,��*�+�+��!�8��R�a�5�F�?���
�A��W�W�T�]�
��|�|�!�!�#�(�(�:�"6�7�7��7�7�3��7�#�D�
�4�y�A�~��T�!�W���)��q� ���e�n���L�L���t�A�w�}�}��/�E��a����t�$�J��5�=�3��D�����#�:���� 2� 2�4� 8�8�D���Kr!N)�__doc__r r&�r!r�<module>r)s���#�J$r!

?>