[Python-checkins] commit of r41705 - python/trunk/Lib/nturl2path.py
reinhold.birkenfeld
python-checkins at python.org
Thu Dec 15 22:59:02 CET 2005
Author: reinhold.birkenfeld
Date: Thu Dec 15 22:59:00 2005
New Revision: 41705
Modified:
python/trunk/Lib/nturl2path.py
Log:
Bug #1378455: a problem of urllib using open_local_file
Modified: python/trunk/Lib/nturl2path.py
==============================================================================
--- python/trunk/Lib/nturl2path.py (original)
+++ python/trunk/Lib/nturl2path.py Thu Dec 15 22:59:00 2005
@@ -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] == '////':
More information about the Python-checkins
mailing list