й¼]Œ ã@sdd„Zdd„ZdS)cCs`ddl}ddl}|jddƒ}d|kr„|dd…dkr\|dd…}|jdƒ}|jjdj|ƒƒS|jdƒ}t|ƒdks¼|dd |jkrÒd |}t |ƒ‚|dd j ƒ}|d jdƒ}|d}x.|D]&}|r |d|jj|ƒ}q W|j dƒr\|j dƒr\|d7}|S) Néú:ú|éz////éú/ú\éz Bad URL: éÿÿÿÿr ) ÚstringÚ urllib.parseÚreplaceÚsplitÚparseÚunquoteÚjoinÚlenÚ ascii_lettersÚOSErrorÚupperÚendswith)Zurlr ÚurllibÚ componentsÚcompÚerrorÚdriveÚpath©rú//opt/alt/python35/lib64/python3.5/nturl2path.pyÚ url2pathnames(  )     rcCsddl}d|kr`|dd…dkr8d|}|jdƒ}|jjdj|ƒƒS|jdƒ}t|ƒdks—t|dƒdkr­d|}t|ƒ‚|jj|djƒƒ}|djdƒ}d |d}x.|D]&}|rñ|d|jj|ƒ}qñW|S) Nrrrz\\rrrz Bad path: z///)r r rÚquoterrrr)ÚprrrrrrrrrÚ pathname2url(s"   (   r!N)rr!rrrrÚs %