©ÕYf¬ ã@sRdZddlZddlZddgZdd„Zdd„Zdd„ZdS) zqMacintosh-specific module for conversion between pathnames and URLs. Do not import directly; use urllib instead.éNÚ url2pathnameÚ pathname2urlcCsétjj|ƒd}|r4|dkr4tdƒ‚|dd…dkr]|dd…}n"|dd…dkrtdƒ‚|jd ƒ}d}xÆ|t|ƒkr\||d krÃ||=q—||d kr|dkr||d dkr||d |d …=|d }q—||d krO|dkrO||d d krO||=q—|d }q—W|dsƒdj|d d…ƒ}nVd}x:|t|ƒkrÅ||d krÅd ||<|d }qŒWddj|ƒ}tjj|ƒS)z{OS-specific conversion from a relative URL of the 'file' scheme to a file system path; not recommended for general use.rÚfilez(Cannot convert non-local URL to pathnameNéz///éz//ú/Ú.ú..éÚú:)r r )ÚurllibÚparseZ splittypeÚ RuntimeErrorÚsplitÚlenÚjoinZunquote)ÚpathnameÚtpÚ componentsÚiÚrv©rú0/opt/alt/python35/lib64/python3.5/macurl2path.pyr s6    0  % cCsÏd|krtdƒ‚|jdƒ}|ddkr>|d=|d dkrU|d =x4tt|ƒƒD] }||dkrhd||s     *