ó zfc@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((s"/usr/lib64/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((s"/usr/lib64/python2.7/nturl2path.pyt pathname2url(s"   (   N(t__doc__RR(((s"/usr/lib64/python2.7/nturl2path.pyts %