AlkantarClanX12
Current Path : /proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/ |
Current File : //proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/nturl2path.cpython-311.opt-1.pyc |
� c��fG � � � d Z d� 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� dk r | dd� } | � d� � }|j � d � |� � � � S | � d� � }t |� � dk s|d d |j vrd| z }t |� � �|d d � � � }|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� dk rX| dd� } | dd� � � � dk rd| dd� z } n | dd� d k rt d | z � � �d | vrU| dd� dk rd| z } | � d� � }|j � d� |� � � � S | � d d� � � }t |� � dk st |d � � dk rd | z }t |� � �|j � |d � � � � � }|d � d� � }d|z d z }|D ]$}|r |dz |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.r Nr z\\?\zUNC\r r r r z Bad path: z\\r )�maxsplitz///)r r r r r �quoter r )�pr r r r r r s r �pathname2urlr&