bzrlib.urlutils
Andrew Bennetts
andrew.bennetts at canonical.com
Fri Mar 26 00:35:49 GMT 2010
Gordon Tyler wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Does anybody know why bzrlib.urlutils exists and does its own parsing of
> URLs instead of using Python's urlparse module?
urlutils provides many useful functions that don't exist in urlparse, especially
functions that deal with relative paths and URLs. Where it can it uses
urlparse, but urlparse doesn't really do anything apart from breaking a URL into
its components (scheme, netloc, path, etc), and assembling URL from those
components.
Where in urlparse are alternatives to urlutils.join, urlutils.joinpath,
urlutils.normalize_url, urlutils.relative_url, urlutils.unescape_for_display,
etc?
-Andrew.
More information about the bazaar
mailing list