Files
PowerToys/PythonHome/Lib/nturl2path.pyc

14 lines
1.9 KiB
Plaintext
Raw Normal View History

2014-07-09 18:15:23 +08:00
<03>
2014-07-10 23:57:08 +08:00
<EFBFBD>W`Sc@sdZd<00>Zd<00>ZdS(s3Convert a NT pathname to a file URL and vice versa.cCsWddl}ddl}|jdd<00>}d|krx|d dkrS|d}n|jd<00>}|jd j|<00><00>S|jd<00>}t|<00>dks<>|d
2014-07-09 18:15:23 +08:00
d|jkr<>d |}t|<00>n|d
dj <00>}|d}|d jd<00>}x.|D]&}|r<>|d |j|<00>}q<>q<>W|j
d<00>rS|j
d<00>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<><69><EFBFBD><EFBFBD>Nt:t|is////it/s\is Bad URL: i( tstringturllibtreplacetsplittunquotetjointlent ascii_letterstIOErrortuppertendswith(turlRRt
2014-07-10 23:57:08 +08:00
componentstcompterrortdrivetpath((s?e:\github\Wox.JSONRPC\Output\Debug\PythonHome\lib\nturl2path.pyt url2pathnames(  )
2014-07-09 18:15:23 +08:00
 
2014-07-10 23:57:08 +08:00
  cCsddl}d|krZ|d dkr5d|}n|jd<00>}|jdj|<00><00>S|jd<00>}t|<00>dks<>t|d<19>d kr<>d
2014-07-09 18:15:23 +08:00
|}t|<00>n|j|dj<00><00>}|d jd<00>}d |d}x.|D]&}|r<>|d|j|<00>}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<><69><EFBFBD><EFBFBD>NRis\\s\Riis
2014-07-10 23:57:08 +08:00
Bad path: s///(RRtquoteRR R R (tpRRRRRR((s?e:\github\Wox.JSONRPC\Output\Debug\PythonHome\lib\nturl2path.pyt pathname2url&s"   (
  N(t__doc__RR(((s?e:\github\Wox.JSONRPC\Output\Debug\PythonHome\lib\nturl2path.pyt<module>s #