Andres Riancho <andresrian...@users.sourceforge.net> added the comment:
The problem is still there in 2.7: >>> urlparts = urlparse.urlparse('C:\\boot.ini') >>> urlparts ('c', '', '\\boot.ini', '', '', '') >>> if not urlparts.path: ... urlparts = list(urlparts) ... urlparts[2] = "/" ... >>> urlparts ('c', '', '\\boot.ini', '', '', '') >>> newurl = urlparse.urlunparse(urlparts) >>> newurl 'c:\\boot.ini' >>> newurl = urlparse.urljoin( 'http://host.tld/spam/eggs.py', newurl) >>> newurl 'c:\\boot.ini' >>> ---------- versions: +Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7920> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com