Changes between Version 2 and Version 3 of Ticket #2235, comment 17
- Timestamp:
- 2014-05-20T16:46:15Z (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2235, comment 17
v2 v3 8 8 {{{ 9 9 if sys.platform == "win32": 10 path = to_windows_long_path(path) 11 [...] 12 13 def to_windows_long_path(path): 10 14 if path.startswith(u"\\\\?\\") or path.startswith(u"\\\\.\\"): 11 pass15 return path 12 16 elif path.startswith(u"\\\\"): 13 path =u"\\\\?\\UNC\\" + path[2 :]17 return u"\\\\?\\UNC\\" + path[2 :] 14 18 else: 15 path =u"\\\\?\\" + path19 return u"\\\\?\\" + path 16 20 }}} 17 21 but I don't actually care about long UNC paths; I just wanted to avoid doing something obviously incorrect for them.