• File: nturl2path.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/proc/self/root/proc/self/root/opt/alt/python27/lib64/python2.7/nturl2path.pyc
  • Date Modified: 10/26/2026 8:10 PM
  • File size: 1.81 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit

jc@sdZdZdZdS(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|jkrd|}t|n|d
dj	}|d}|djd}x.|D]&}|r|d	|j|}qqW|j
drS|j
drS|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.iNt:t|is////it/s\is	Bad URL: i(tstringturllibtreplacetsplittunquotetjointlent
ascii_letterstIOErrortuppertendswith(turlRRt
componentstcompterrortdrivetpath((s//opt/alt/python27/lib64/python2.7/nturl2path.pyturl2pathnames(	
)



cCsddl}d|krZ|d dkr5d|}n|jd}|jdj|S|jd}t|dkst|dd	krd
|}t|n|j|dj}|d	jd}d|d}x.|D]&}|r|d|j|}qqW|S(s{OS-specific conversion from a file system path to a relative URL
    of the 'file' scheme; not recommended for general use.iNRis\\s\Riis
Bad path: s///(RRtquoteRR	RR(tpRRRRRR((s//opt/alt/python27/lib64/python2.7/nturl2path.pytpathname2url(s"
(

N(t__doc__RR(((s//opt/alt/python27/lib64/python2.7/nturl2path.pyt<module>s	%