os.path.normpath() for URLs?
Robert Dailey
rcdailey at gmail.com
Mon Aug 4 18:09:42 EDT 2008
Hi,
I'm currently trying to parse relative URLs, but I want to make them
absolute. In other words, I want to normalize the URLs. However, I don't
want to have to write this logic myself if it is already provided. I was
thinking of somehow tricking os.path.normpath() as a last resort. This is
for subversion URLs, for those wondering. Basically, I need to turn the
following URL:
svn://myserver/foo/bar/trunk/../tags
Into this:
svn://myserver/foo/bar/tags
Does anyone know a way I can do this? Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080804/993b494b/attachment.html>
More information about the Python-list
mailing list