File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 4848def to_posix (path ):
4949 """
5050 Return a path using the posix path separator given a path that may contain
51- posix or windows separators, converting \\ to / . NB: this path will still
52- be valid in the windows explorer (except if UNC or share name). It will be
53- a valid path everywhere in Python. It will not be valid for windows
51+ posix or windows separators, converting " \\ " to "/" . NB: this path will
52+ still be valid in the windows explorer (except for a UNC or share name). It
53+ will be a valid path everywhere in Python. It will not be valid for windows
5454 command line operations.
5555 """
5656 return path .replace (ntpath .sep , posixpath .sep )
@@ -245,8 +245,8 @@ def norm(p):
245245def to_native (path ):
246246 """
247247 Return a path using the current OS path separator given a path that may
248- contain posix or windows separators, converting / to \ on windows and \ to
249- / on posix OSes.
248+ contain posix or windows separators, converting "/" to " \\ " on windows
249+ and " \\ " to "/" on posix OSes.
250250 """
251251 path = path .replace (ntpath .sep , os .path .sep )
252252 path = path .replace (posixpath .sep , os .path .sep )
You can’t perform that action at this time.
0 commit comments