]> granicus.if.org Git - python/commit
Sjoerd Mullender writes:
authorGuido van Rossum <guido@python.org>
Thu, 18 Mar 1999 15:10:44 +0000 (15:10 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 18 Mar 1999 15:10:44 +0000 (15:10 +0000)
commitf3963b1269a9f4fde99724524a7afe81e974aa62
tree920604dd88959130b6e8e1b6fa74080fcf58e511
parente3fd1064debb7d7d8aa94dedef6f6d8c1e7166cc
Sjoerd Mullender writes:

If a filename on Windows starts with \\, it is converted to a URL
which starts with ////.  If this URL is passed to urlparse.urlparse
you get a path that starts with // (and an empty netloc).  If you pass
the result back to urlparse.urlunparse, you get a URL that starts with
//, which is parsed differently by urlparse.urlparse.  The fix is to
add the (empty) netloc with accompanying slashes if the path in
urlunparse starts with //.  Do this for all schemes that use a netloc.
Lib/urlparse.py