|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/22697/root/usr/lib64/python2.4/ |
Upload File : |
mò
=5Dc @ sd d Z d k Z d k Z d d g Z d Z d Z d Z d Z e d j o e n d S( sq Macintosh-specific module for conversion between pathnames and URLs.
Do not import directly; use urllib instead.Nt url2pathnamet pathname2urlc C sà t i | d } | o | d j o
t d n | d d j o | d } n | d d j o
t d n | i d } d } xÏ | t | j oğ | | d j o | | =q | | d
j oB | d j o5 | | d d j o | | d | d 5| d } q | | d j o- | d j o | | d d j o | | =q | d } q W| d p d
i | d } nZ d } x= | t | j o) | | d
j o d | | <| d } qWd
d
i | } t i | S( s{ OS-specific conversion from a relative URL of the 'file' scheme
to a file system path; not recommended for general use.i t files( Cannot convert non-local URL to pathnamei s ///i s //t /t .s ..i t t :N( R s ..( t urllibt splittypet pathnamet tpt RuntimeErrort splitt
componentst it lent joint rvt unquote( R R R R
R
( ( t# /usr/lib64/python2.4/macurl2path.pyR
s:
33 $
c C sċ d | j o
t d n | i d } | d d j o | d =n | d d j o | d =n x9 t t | D]% } | | d j o d | | <qt qt Wt t | } t i
i | o d d i | Sn d i | Sd S( s{ OS-specific conversion from a file system path to a relative URL
of the 'file' scheme; not recommended for general use.R s* Cannot convert pathname containing slashesR i R i˙˙˙˙s ..N(
R R R R
t rangeR R t mapt _pncomp2urlt ost patht isabsR ( R R R
( ( R R 4 s
c C s t i | d d d } | S( Ni t safeR ( R t quotet component( R ( ( R R K s c C sw x2 d d d d d g D] } d | t | f GHq Wx; d d d d
d d d
d g D] } d | t | f GHqT Wd S( Ns
index.htmls bar/index.htmls /foo/bar/index.htmls /foo/bar/R s %r -> %rs drive:s
drive:dir:s drive:dir:files
drive:fileR s :files :dir:s :dir:file( t urlR R R ( R R ( ( R t testO s t __main__( t __doc__R R t __all__R R R R t __name__( R! R R R R R R ( ( R t ? s *