ó zfc@sIdZddlZddlZddgZd„Zd„Zd„ZdS(sqMacintosh-specific module for conversion between pathnames and URLs. Do not import directly; use urllib instead.iÿÿÿÿNt url2pathnamet pathname2urlcCsÈtj|ƒd}|r1|dkr1td‚n|d dkrN|d}n|d dkrjtd‚n|jdƒ}d}xÃ|t|ƒkrD||d kr®||=q‚||d krý|dkrý||d dkrý||d |d 5|d }q‚||d kr7|dkr7||d d kr7||=q‚|d }q‚W|dsed j|d ƒ}nVd}x:|t|ƒkr§||d kr§d ||<|d }qnWd d j|ƒ}tj|ƒS(s{OS-specific conversion from a relative URL of the 'file' scheme to a file system path; not recommended for general use.itfiles(Cannot convert non-local URL to pathnameis///is//t/t.s..itt:(Rs..(turllibt splittypet RuntimeErrortsplittlentjointunquote(tpathnamettpt componentstitrv((s#/usr/lib64/python2.7/macurl2path.pyR s6     0  % cCsØd|krtd‚n|jdƒ}|ddkrA|d=n|ddkr[|d=nx7tt|ƒƒD]#}||dkrnd||s     *