관리-도구
편집 파일: nturl2path.cpython-310.opt-2.pyc
o 6��fG � @ s d d� Z dd� ZdS )c C s� dd l }dd l}| �dd�} d| vr/| d d� dkr!| dd � } | �d�}|j�d�|��S | �d�}t|�dksC|d d |jvrKd | }t |��|d d � � }|d �d�}|d }|D ]}|rn|d |j�|� }q`|�d�r}| �d�r}|d7 }|S )N� �:�|� z////� �/�\���z Bad URL: � )�string�urllib.parse�replace�split�parseZunquote�join�lenZ ascii_letters�OSError�upper�endswith)Zurlr �urllib� components�comp�error�drive�path� r �1/opt/alt/python310/lib64/python3.10/nturl2path.py�url2pathname s, �r c C s2 dd l }| d d� dkr4| dd � } | d d� �� dkr&d| dd � } n| dd� dkr4td | ��d| vrR| d d� d krDd | } | �d�}|j�d�|��S | jddd�}t|�dksgt|d �dkrod | }t|��|j�|d �� �}|d �d�}d | d }|D ]}|r�|d |j�|� }q�|S )Nr r z\\?\zUNC\r r r r z Bad path: z\\r )�maxsplitz///)r r r r r Zquoter r )�pr r r r r r r r r �pathname2url- s2 �r N)r r r r r r �<module> s %