관리-도구
편집 파일: nturl2path.cpython-37.opt-2.pyc
B YI~d � @ s d d� Z dd� ZdS )c C s dd l }dd l}| �dd�} d| kr\| d d� dkr@| dd � } | �d�}|j�d�|��S | �d�}t|�dks�|d d |jkr�d | }t |��|d d � � }|d �d�}|d }x$|D ]}|r�|d |j�|� }q�W |�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 �//opt/alt/python37/lib64/python3.7/nturl2path.py�url2pathname s( r c C s� dd l }d| krD| d d� dkr(d| } | �d�}|j�d�|��S | �d�}t|�dksjt|d �dkrzd| }t|��|j�|d �� �}|d �d�}d | d }x$|D ]}|r�|d |j�|� }q�W |S ) Nr r r z\\r r r z Bad path: z///)r r r Zquoter r r r )�pr r r r r r r r r �pathname2url- s"