b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 172.67.192.52 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 /
Filename/usr/lib64/python2.6/macurl2path.pyc
Size2.76 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed20-Jun-2019 19:45
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc@sjdZddkZddkZddgZd�Zd�Zd�Zd�Zed jo e�ndS(
sqMacintosh-specific module for conversion between pathnames and URLs.

Do not import directly; use urllib instead.iÿÿÿÿNt url2pathnamet pathname2urlcCsàti|�d}|o|djo
td�n|d djo|d}n|d djo
td�n|id�}d}xÏ|t|�jo»||d jo ||=q�||d
joB|djo5||d djo ||d |d 5|d }q�||d jo-|djo ||d d jo ||=q�|d }q�W|dpd
i|d �}nZd}x=|t|�jo)||d
jod ||<|d }q�Wd
d
i|�}ti|�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.6/macurl2path.pyR
s:

 3  $
cCsâd|jo
td�n|id�}|ddjo |d=n|ddjo |d=nx9tt|��D]%}||djod||<qtqtWtt|�}tii|�oddi |�Sdi |�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 slashesRiRiÿÿÿÿs..N(
R R
trangeR tmapt _pncomp2urltostpathtisabsR (RRR((s#/usr/lib64/python2.6/macurl2path.pyR4s

  cCsti|d dd�}|S(NitsafeR(Rtquote(t component((s#/usr/lib64/python2.6/macurl2path.pyRKsc
Cswx2dddddgD]}d|t|�fGHqWx;ddd d
d d d
dgD]}d|t|�fGHqTWdS(Ns
index.htmlsbar/index.htmls/foo/bar/index.htmls /foo/bar/Rs%r -> %rsdrive:s
drive:dir:sdrive:dir:files
drive:fileRs:files:dir:s :dir:file(RR(turlR((s#/usr/lib64/python2.6/macurl2path.pyttestOs"t__main__( t__doc__RRt__all__RRRRt__name__(((s#/usr/lib64/python2.6/macurl2path.pyt<module>s    *