View file File name : macurl2path.cpython-36.pyc Content :3 \� � @ s8 d Z ddlZddlZddgZdd� Zdd� Zdd� ZdS ) zqMacintosh-specific module for conversion between pathnames and URLs. Do not import directly; use urllib instead.� N�url2pathname�pathname2urlc C st t jj| �d }|r$|dkr$td��| dd� dkrB| dd� } n| dd� dkrZtd��| jd �}d}x�|t|�k �r|| d kr�||= qj|| dkr�|dkr�||d dkr�||d |d �= |d }qj|| d kr�|dkr�||d d kr�||= qj|d }qjW |d �s"dj|dd� �}nFd}x2|t|�k �rX|| dk�rXd ||<