AlkantarClanX12

Your IP : 3.12.34.209


Current Path : /proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/nturl2path.cpython-311.opt-1.pyc

�

c��fG���dZd�Zd�ZdS)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��}d|vrZ|dd�dkr
|dd�}|�d��}|j�d	�|����S|�d��}t|��dks|dd
|jvrd|z}t|���|dd
�
��}|d�d��}|dz}|D]$}|r |d	z|j�|��z}�%|�d��r|�d��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/python311/lib64/python3.11/nturl2path.py�url2pathnamer sv�� ��������

�+�+�c�3�
�
�C��#�:�:��r��r�7�f����a�b�b�'�C��Y�Y�s�^�^�
��|�#�#�D�I�I�j�$9�$9�:�:�:��9�9�S�>�>�D�
�4�y�y�A�~�~��a����F�,@�@�@��c�!���e�n�n����G�B�K�����E��a����s�#�#�J��3�;�D��<�<���	<��$�;���!5�!5�d�!;�!;�;�D���}�}�S����c�l�l�3�/�/�������K�c�2�ddl}|dd�dkrX|dd�}|dd����dkrd|dd�z}n |dd�d	krtd
|z���d	|vrU|dd�dkrd|z}|�d��}|j�d�|����S|�d	d�
��}t|��dkst|d��dkrd
|z}t|���|j�|d�����}|d�d��}d|zd	z}|D]$}|r |dz|j�|��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�b�E���R�a�R�5�;�;�=�=�G�#�#��q����u��A�A�
�q��s�V�s�]�]��,��*�+�+�+��!�8�8��R�a�R�5�F�?�?���
�A��W�W�T�]�]�
��|�!�!�#�(�(�:�"6�"6�7�7�7��7�7�3��7�#�#�D�
�4�y�y�A�~�~��T�!�W����)�)��q� ���e�n�n���L���t�A�w�}�}���/�/�E��a����t�$�$�J��5�=�3��D��9�9���	9��#�:��� 2� 2�4� 8� 8�8�D���Kr!N)�__doc__r r&�r!r�<module>r)s8����#�#�#�J$�$�$�$�$r!