B PL @sddZddZdS)cCsddl}ddl}|dd}d|kr\|dddkr@|dd}|d}|jd|S|d}t|dks|dd |jkrd |}t ||dd  }|d d}|d}x$|D]}|r|d|j|}qW| dr| dr|d7}|S) N:|z/////\z Bad URL: ) string urllib.parsereplacesplitparseZunquotejoinlenZ ascii_lettersOSErrorupperendswith)Zurlr urllib componentscomperrordrivepathr-/opt/alt/python37/lib/python3.7/nturl2path.py url2pathnames(      rcCsddl}d|krD|dddkr(d|}|d}|jd|S|d}t|dksjt|ddkrzd|}t||j|d}|dd}d |d}x$|D]}|r|d|j|}qW|S) Nrrrz\\rrr z Bad path: z///)r r rZquoterrrr)prrrrrrrrr pathname2url-s"    rN)rrrrrrs%