[Python-checkins] commit of r41706 - python/branches/release24-maint/Lib/nturl2path.py

reinhold.birkenfeld python-checkins at python.org
Thu Dec 15 22:59:19 CET 2005


Author: reinhold.birkenfeld
Date: Thu Dec 15 22:59:16 2005
New Revision: 41706
Modified:
 python/branches/release24-maint/Lib/nturl2path.py
Log:
Bug #1378455: a problem of urllib using open_local_file (backport)
Modified: python/branches/release24-maint/Lib/nturl2path.py
==============================================================================
--- python/branches/release24-maint/Lib/nturl2path.py	(original)
+++ python/branches/release24-maint/Lib/nturl2path.py	Thu Dec 15 22:59:16 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

AltStyle によって変換されたページ (->オリジナル) /