Changeset 391 for python/trunk/Lib/nturl2path.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/nturl2path.py
r2 r391 26 26 raise IOError, error 27 27 drive = comp[0][-1].upper() 28 path = drive + ':' 28 29 components = comp[1].split('/') 29 path = drive + ':' 30 for comp in components: 30 for comp in components: 31 31 if comp: 32 32 path = path + '\\' + urllib.unquote(comp) 33 # Issue #11474: url like '/C|/' should convert into 'C:\\' 34 if path.endswith(':') and url.endswith('/'): 35 path += '\\' 33 36 return path 34 37
Note:
See TracChangeset
for help on using the changeset viewer.