| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/ |
Upload File : |
ó
˙|_c @ sh d Z d d l Z d d l Z d d g Z d Z d Z d Z d Z e d k rd e n d S(
sq Macintosh-specific module for conversion between pathnames and URLs.
Do not import directly; use urllib instead.i˙˙˙˙Nt url2pathnamet pathname2urlc C sČ t j | d } | r1 | d k r1 t d n | d d k rN | d } n | d d k rj t d n | j d } d } xĂ | t | k rD| | d k rŽ | | =q | | d
k rý | d k rý | | d d k rý | | d | d 5| d } q | | d k r7| d k r7| | d d k r7| | =q | d } q W| d sed
j | d } nV d } x: | t | k r§| | d
k r§d | | <| d } qnWd
d
j | } t j | 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 :( R s ..( t urllibt splittypet RuntimeErrort splitt lent joint unquote( t pathnamet tpt
componentst it rv( ( s! /usr/lib/python2.7/macurl2path.pyR
s6
0
%
c C sŘ d | k r t d n | j d } | d d k rA | d =n | d d k r[ | d =n x7 t t | D]# } | | d k rn d | | <qn qn Wt t | } t j j | rÇ d d j | Sd j | 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
t rangeR t mapt _pncomp2urlt ost patht isabsR ( R R R ( ( s! /usr/lib/python2.7/macurl2path.pyR 4 s
c C s t j | d d d } | S( Ni t safeR ( R t quote( t component( ( s! /usr/lib/python2.7/macurl2path.pyR 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( R R ( t urlR ( ( s! /usr/lib/python2.7/macurl2path.pyt testO s
t __main__( t __doc__R R t __all__R R R R t __name__( ( ( s! /usr/lib/python2.7/macurl2path.pyt <module> s *