ó õùPc@sdZd„Zd„ZdS(s3Convert a NT pathname to a file URL and vice versa.cCs,ddl}ddl}|jddƒ}d|krx|d dkrS|d}n|jdƒ}|jd j|ƒƒS|jdƒ}t|ƒdks°|d d|jkrÆd |}t|‚n|d dj ƒ}|d jdƒ}|d}x.|D]&}|rþ|d |j|ƒ}qþqþW|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_letterstIOErrortupper(turlRRt componentstcompterrortdrivetpath((s..\python\lib\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..\python\lib\nturl2path.pyt pathname2url#s"   (   N(t__doc__RR(((s..\python\lib\nturl2path.pyts