From: Georg Brandl Date: Thu, 15 Dec 2005 21:59:16 +0000 (+0000) Subject: Bug #1378455: a problem of urllib using open_local_file (backport) X-Git-Tag: v2.4.3c1~189 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52dcf710a1e9cf304cd846faf51d04c055e3b805;p=thirdparty%2FPython%2Fcpython.git Bug #1378455: a problem of urllib using open_local_file (backport) --- diff --git a/Lib/nturl2path.py b/Lib/nturl2path.py index 4fb21487ffe4..2ced9a91c5dd 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] == '////':