Skip to content

Commit c5ac448

Browse files
committed
Clarify use of \ backslashes in docstrings
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 9dbf8ac commit c5ac448

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/attributecode/util.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
def 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):
245245
def 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)

0 commit comments

Comments
 (0)