• File: macurl2path.pyo
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/proc/self/root/proc/self/root/opt/alt/python27/lib64/python2.7/macurl2path.pyo
  • Date Modified: 10/26/2026 8:10 PM
  • File size: 2.24 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit

jc@sIdZddlZddlZddgZdZdZdZdS(sqMacintosh-specific module for conversion between pathnames and URLs.

Do not import directly; use urllib instead.iNturl2pathnametpathname2urlcCstj|d}|r1|dkr1tdn|d dkrN|d}n|d dkrjtdn|jd}d}x|t|krD||d	kr||=q||d
kr|dkr||ddkr||d|d5|d}q||dkr7|dkr7||ddkr7||=q|d}qW|dsed
j|d}nVd}x:|t|kr||d
krd||<|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((s0/opt/alt/python27/lib64/python2.7/macurl2path.pyR
s6


0

%
cCsd|krtdn|jd}|ddkrA|d=n|ddkr[|d=nx7tt|D]#}||dkrnd||<qnqnWtt|}tjj|rddj	|Sdj	|SdS(	s{OS-specific conversion from a file system path to a relative URL
    of the 'file' scheme; not recommended for general use.Rs*Cannot convert pathname containing slashesRiRis..N(
R	R
trangeRtmapt_pncomp2urltostpathtisabsR(RRR((s0/opt/alt/python27/lib64/python2.7/macurl2path.pyR4s

cCstj|d dd}|S(NitsafeR(Rtquote(t	component((s0/opt/alt/python27/lib64/python2.7/macurl2path.pyRKs(t__doc__RRt__all__RRR(((s0/opt/alt/python27/lib64/python2.7/macurl2path.pyt<module>s	*