Your IP : 3.129.210.36


Current Path : /opt/alt/python33/lib64/python3.3/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/__pycache__/macurl2path.cpython-33.pyc

�
��f�
c@sRdZddlZddlZddgZdd�Zdd�Zdd�ZdS(	uqMacintosh-specific module for conversion between pathnames and URLs.

Do not import directly; use urllib instead.iNuurl2pathnameupathname2urlcCs�tjj|�d}|r7|dkr7td��n|dd�dkr`|dd�}n%|dd�dkr�td��n|jd	�}d}x�|t|�krb||d
kr�||=q�||dkr|dkr||ddkr||d|d�=|d}q�||d
krU|dkrU||dd
krU||=q�|d}q�W|ds�dj|dd��}nVd}x:|t|�kr�||dkr�d
||<|d}q�Wddj|�}tjj|�S(u{OS-specific conversion from a relative URL of the 'file' scheme
    to a file system path; not recommended for general use.iufileu(Cannot convert non-local URL to pathnameNiu///iu//u/u.u..iuu:(uu..(uurllibuparseu	splittypeuRuntimeErrorusplitulenujoinuunquote(upathnameutpu
componentsuiurv((u0/opt/alt/python33/lib64/python3.3/macurl2path.pyuurl2pathname
s6

0

%
cCs�d|krtd��n|jd�}|ddkrD|d=n|d	dkr^|d
=nx7tt|��D]#}||dkrqd||<qqqqWtt|�}tjj|�r�ddj	|�Sdj	|�SdS(u{OS-specific conversion from a file system path to a relative URL
    of the 'file' scheme; not recommended for general use.u/u*Cannot convert pathname containing slashesu:iuiu..Ni����i����(
uRuntimeErroruspliturangeulenumapu_pncomp2urluosupathuisabsujoin(upathnameu
componentsui((u0/opt/alt/python33/lib64/python3.3/macurl2path.pyupathname2url4s

cCs tjj|dd�dd�S(Niusafeu(uurllibuparseuquote(u	component((u0/opt/alt/python33/lib64/python3.3/macurl2path.pyu_pncomp2urlKsu_pncomp2url(u__doc__uurllib.parseuurllibuosu__all__uurl2pathnameupathname2urlu_pncomp2url(((u0/opt/alt/python33/lib64/python3.3/macurl2path.pyu<module>s*

?>