Changeset 388 for python/vendor/current/Lib/nturl2path.py
- Timestamp:
- Mar 19, 2014, 11:11:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/vendor/current/Lib/nturl2path.py
r2 r388 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.