- Timestamp:
- Dec 11, 2015, 7:20:33 PM (10 years ago)
- Location:
- python/trunk/Lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk/Lib/os2emxpath.py
r381 r607 37 37 38 38 Makes all characters lowercase and all altseps into seps.""" 39 return s.replace( '\\', '/').lower()39 return s.replace(altsep, sep).lower() 40 40 41 41 … … 44 44 def join(a, *p): 45 45 """Join two or more pathname components, inserting sep as needed""" 46 47 Also replace all altsep chars with sep in the returned string 48 to make it consistent.""" 46 49 path = a 47 50 for b in p: … … 52 55 else: 53 56 path = path + '/' + b 54 return path 57 return path.replace(altsep, sep) 55 58 56 59 -
python/trunk/Lib/os2knixpath.py
r381 r607 38 38 39 39 Makes all characters lowercase and all altseps into seps.""" 40 return s.replace( '\\', '/').lower()40 return s.replace(altsep, sep).lower() 41 41 42 42 … … 44 44 45 45 def join(a, *p): 46 """Join two or more pathname components, inserting sep as needed""" 46 """Join two or more pathname components, inserting sep as needed. 47 48 Also replaces all altsep chars with sep in the returned string 49 to make it consistent.""" 47 50 path = a 48 51 for b in p: … … 53 56 else: 54 57 path = path + '/' + b 55 return path 58 return path.replace(altsep, sep) 56 59 57 60
Note:
See TracChangeset
for help on using the changeset viewer.