ACC SHELL

Path : /usr/lib/python/
File Upload :
Current File : //usr/lib/python/macurl2path.pyc

Ńň
oÄMc@sjdZddkZddkZddgZd„Zd„Zd„Zd„Zed	joeƒ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||ddjo ||d|d5|d}q‰||djo-|djo ||dd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/lib/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
trangeRtmapt_pncomp2urltostpathtisabsR(RRR((s!/usr/lib/python2.6/macurl2path.pyR4s

cCsti|d ddƒ}|S(NitsafeR(Rtquote(t	component((s!/usr/lib/python2.6/macurl2path.pyRKsc
Cswx2dddddgD]}d|t|ƒfGHqWx;ddd	d
dd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/lib/python2.6/macurl2path.pyttestOs"t__main__(	t__doc__RRt__all__RRRRt__name__(((s!/usr/lib/python2.6/macurl2path.pyt<module>s	*			


ACC SHELL 2018