Edit File: nturl2path.cpython-311.opt-1.pyc
� �����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&���-���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!���