From: Georg Brandl Date: Thu, 15 Dec 2005 21:59:00 +0000 (+0000) Subject: Bug #1378455: a problem of urllib using open_local_file X-Git-Tag: v2.5a0~1022 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07f159de864655d188aa963794cd21592fbebc73;p=python Bug #1378455: a problem of urllib using open_local_file --- diff --git a/Lib/nturl2path.py b/Lib/nturl2path.py index 4fb21487ff..2ced9a91c5 100644 --- a/Lib/nturl2path.py +++ b/Lib/nturl2path.py @@ -10,6 +10,8 @@ def url2pathname(url): C:\foo\bar\spam.foo """ import string, urllib + # Windows itself uses ":" even in URLs. + url = url.replace(':', '|') if not '|' in url: # No drive specifier, just convert slashes if url[:4] == '////':