diff options
author | Georg Brandl <georg@python.org> | 2005-12-15 21:59:00 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-12-15 21:59:00 +0000 |
commit | 525779b94049f42f080b2c70bea128a6a2247e9b (patch) | |
tree | 4ec6534d02b5588655171f0eb9671c73e9e8842a /Lib/nturl2path.py | |
parent | 48eb421605ad5ce0eab52f5a378b798373349f5d (diff) | |
download | cpython-525779b94049f42f080b2c70bea128a6a2247e9b.tar.gz |
Bug #1378455: a problem of urllib using open_local_file
Diffstat (limited to 'Lib/nturl2path.py')
-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 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] == '////': |