ó õ^‚Rc@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/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((s /usr/lib/python2.7/nturl2path.pyt pathname2url&s"   (   N(t__doc__RR(((s /usr/lib/python2.7/nturl2path.pyts #