urlutils improvements from hpss
Robert Collins
robertc at robertcollins.net
Mon Apr 16 04:21:54 BST 2007
On Mon, 2007-04-16 at 01:56 +1000, Andrew Bennetts wrote:
>
> I think it's clearer for code to say "urlutils.pathjoin" than
> "osutils.pathjoin"
> when joining URLs. We've had code in the past that was confused about
> the kinds
> of paths they dealt with.
In particular, paths are unicode/native-encoding/utf8 whereas urls are
bytestrings always. Paths have 'real paths', URLs cannot (only the
issuer of a URL can tell you if it will redirect).
I agree that having disjoint API's is actually a good thing.
-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070416/2a4df94c/attachment.pgp
More information about the bazaar
mailing list