ž Ĵ˙f\ c@s"dZdd„Zdd„ZdS(u3Convert a NT pathname to a file URL and vice versa.cCslddl}ddl}|jddƒ}d|kr‡|dd…dkr_|dd…}n|jdƒ}|jjd j|ƒƒS|jdƒ}t|ƒdksż|dd |jkrĜd |}t |ƒ‚n|dd j ƒ}|d jdƒ}|d}x1|D])}|r|d |jj|ƒ}qqW|j dƒrh|j dƒrh|d 7}n|S(u{OS-specific conversion from a relative URL of the 'file' scheme to a file system path; not recommended for general use.iNu:u|iu////iu/u\iu Bad URL: i˙˙˙˙i˙˙˙˙( ustringu urllib.parseureplaceusplituparseuunquoteujoinulenu ascii_lettersuIOErroruupperuendswith(uurlustringuurllibu componentsucompuerrorudriveupath((u//opt/alt/python33/lib64/python3.3/nturl2path.pyu url2pathnames( )   ! u url2pathnamecCs(ddl}d|krc|dd…dkr;d|}n|jdƒ}|jjdj|ƒƒS|jdƒ}t|ƒdksšt|dƒdkr³d |}t|ƒ‚n|jj|djƒƒ}|djdƒ}d |d}x1|D])}|r÷|d|jj|ƒ}q÷q÷W|S( u{OS-specific conversion from a file system path to a relative URL of the 'file' scheme; not recommended for general use.iNu:iu\\u\u/iu Bad path: u///(u urllib.parseusplituparseuquoteujoinulenuIOErroruupper(upuurllibu componentsucompuerrorudriveupath((u//opt/alt/python33/lib64/python3.3/nturl2path.pyu pathname2url&s"   (  !u pathname2urlN(u__doc__u url2pathnameu pathname2url(((u//opt/alt/python33/lib64/python3.3/nturl2path.pyus #