diff options
-rw-r--r-- | Lib/nturl2path.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ 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] == '////': |