- Timestamp:
- Nov 17, 2017, 12:15:58 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk/Lib/urllib.py
r391 r1257 50 50 elif os.name == 'riscos': 51 51 from rourl2path import url2pathname, pathname2url 52 elif os.name == 'os2': 53 import nturl2path 54 def url2pathname(pathname): 55 """OS-specific conversion from a relative URL of the 'file' scheme 56 to a file system path; not recommended for general use.""" 57 # nturl2path only expects back slashes 58 return nturl2path.url2pathname(pathname.replace('/', '\\')) 59 60 def pathname2url(pathname): 61 """OS-specific conversion from a file system path to a relative URL 62 of the 'file' scheme; not recommended for general use.""" 63 # nturl2path only expects back slashes 64 return nturl2path.pathname2url(pathname.replace('/', '\\')) 52 65 else: 53 66 def url2pathname(pathname):
Note:
See TracChangeset
for help on using the changeset viewer.