tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
L\¬Qc@sdZd„Zd„ZdS(s3Convert a NT pathname to a file URL and vice versa.cCsWddl}ddl}|jddƒ}d|krx|d dkrS|d}n|jdƒ}|jd    j|ƒƒS|jdƒ}t|ƒdks°|d
d|jkrÆd |}t|‚n|d
dj    ƒ}|d}|d jdƒ}x.|D]&}|rþ|d    |j|ƒ}qþqþW|j
dƒrS|j
dƒrS|d    7}n|S( s{OS-specific conversion from a relative URL of the 'file' scheme
    to a file system path; not recommended for general use.iÿÿÿÿNt:t|is////it/s\is    Bad URL: i( tstringturllibtreplacetsplittunquotetjointlent ascii_letterstIOErrortuppertendswith(turlRRt
componentstcompterrortdrivetpath((sR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/nturl2path.pyt url2pathnames(  )
 
  cCsddl}d|krZ|d dkr5d|}n|jdƒ}|jdj|ƒƒS|jdƒ}t|ƒdks‘t|dƒd    kr§d
|}t|‚n|j|djƒƒ}|d    jdƒ}d |d}x.|D]&}|rè|d|j|ƒ}qèqèW|S( s{OS-specific conversion from a file system path to a relative URL
    of the 'file' scheme; not recommended for general use.iÿÿÿÿNRis\\s\Riis
Bad path: s///(RRtquoteRR    R R (tpRRRRRR((sR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/nturl2path.pyt pathname2url&s"   (
  N(t__doc__RR(((sR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/nturl2path.pyt<module>s    #