commit | 07f159de864655d188aa963794cd21592fbebc73 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Thu Dec 15 21:59:00 2005 +0000 |
committer | Georg Brandl <georg@python.org> | Thu Dec 15 21:59:00 2005 +0000 |
tree | 45adbeba74c4989783c118c80cd93b6c1296cb75 | |
parent | 6ee339109f40645dbe04e1f70069c96df9aaa741 [diff] |
Bug #1378455: a problem of urllib using open_local_file
diff --git a/Lib/nturl2path.py b/Lib/nturl2path.py index 4fb2148..2ced9a9 100644 --- a/Lib/nturl2path.py +++ b/Lib/nturl2path.py
@@ -10,6 +10,8 @@ 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] == '////':