This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author callenish
Recipients
Date 2002-08-06.19:26:03
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
If you run urlparse.urljoin() on a file: URL, the resulting URL 
has together with the wrong number of '/'s in it.

Properly formed, the URL (assuming no netloc) should have 
three slashes, so that it looks like "file:///...". The current 
code drops that down to one.

The error appears to be in a condition in urlunsplit(). It 
doesn't show up except in this one instance because the 
test is only run iff the scheme is in the list of those that can 
take a netloc and there is no netloc present in the URL. 
Apparently, this is pretty rare.

Patch attached that corrects the condition.
History
Date User Action Args
2007-08-23 15:14:35adminlinkissue591713 messages
2007-08-23 15:14:35admincreate