AlkantarClanX12
Current Path : /proc/self/root/opt/alt/python39/lib64/python3.9/__pycache__/ |
Current File : //proc/self/root/opt/alt/python39/lib64/python3.9/__pycache__/nturl2path.cpython-39.opt-2.pyc |
a R�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|�dks�|d d |jvr�d | }t |��|d d � � }|d �d�}|d }|D ]}|r�|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 �//opt/alt/python39/lib64/python3.9/nturl2path.py�url2pathname s( r c C s4 dd l }| d d� dkrf| dd � } | d d� �� dkrJd| dd � } n| dd� dkrftd | ��d| vr�| d d� d kr�d | } | �d�}|j�d�|��S | jddd�}t|�dks�t|d �dkr�d | }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- s. r N)r r r r r r �<module> s %