mò %U²Ic@sdZd„Zd„ZdS(s3Convert a NT pathname to a file URL and vice versa.cCs2dk}dk}|iddƒ}d|joH|d djo|d}n|idƒ}|idi|ƒƒSn|idƒ}t |ƒdjp|d d |i jod |}t |‚n|d d i ƒ}|d idƒ}|d}x0|D](}|o|d|i|ƒ}qqW|S( s{OS-specific conversion from a relative URL of the 'file' scheme to a file system path; not recommended for general use.Nt:t|is////it/s\iiÿÿÿÿs Bad URL: i(tstringturllibturltreplacetsplitt componentstunquotetjointcomptlent ascii_lettersterrortIOErrortuppertdrivetpath(RRR RRRRR((t'/data/zmath/lib/python2.4/nturl2path.pyt url2pathnames( +   cCsdk}d|joH|d djod|}n|idƒ}|idi|ƒƒSn|idƒ}t|ƒdjpt|dƒdjod |}t |‚n|i|di ƒƒ}|didƒ}d |d }x0|D](}|o|d|i|ƒ}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.NRis\\s\Riis Bad path: s///R( RtpRRtquoteR R R RRRRR(RR RRRRR((Rt pathname2url#s&  *  N(t__doc__RR(RR((Rt?s