[patch] urlutils.join() should handle trailing slashes better
John Arbash Meinel
john at arbash-meinel.com
Thu Jun 15 22:06:24 BST 2006
I was trying to write some other tests, and I came across this bug.
Basically, urlutils.join() gives a bad output when the base is the root
path. (like file:/// or http://host/)
The old code would do:
urlutils.join('file:///', 'foo') => 'file:////foo'
The new code returns:
urlutils.join('file:///', 'foo') => 'file:///foo'
As you would expect.
I added a few tests, etc.
John
=:->
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: urlutils-handle-root-join.diff
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20060615/6afca3d4/attachment.diff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060615/6afca3d4/attachment.pgp
More information about the bazaar
mailing list