Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c1ddc50

Browse files
committed
Minor revision to the "\\" patch, including updating the docs a little to
accomodate the fact that they are more general now that they are for the os.path module and not just posixpath. This and the previous patch should be combined and applied to the 2.2-maint branch.
1 parent c12909b commit c1ddc50

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Doc/lib/libposixpath.tex

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,12 @@ \section{\module{os.path} ---
122122
Joins one or more path components intelligently. If any component is
123123
an absolute path, all previous components are thrown away, and joining
124124
continues. The return value is the concatenation of \var{path1}, and
125-
optionally \var{path2}, etc., with exactly one slash (\code{'/'})
126-
inserted between components, unless \var{path} is empty. Note that on
127-
Windows, since there is a current directory for each drive,
128-
{}\function{os.path.join("c:", "foo")} represents a path relative to the
129-
current directory on drive C:, not \code{c:\\foo}.
125+
optionally \var{path2}, etc., with exactly one directory separator
126+
(\code{os.sep}) inserted between components, unless \var{path} is
127+
empty. Note that on Windows, since there is a current directory for
128+
each drive, \function{os.path.join("c:", "foo")} represents a path
129+
relative to the current directory on drive \file{C:} (\file{c:foo}), not
130+
\file{c:\textbackslash\textbackslash foo}.
130131
\end{funcdesc}
131132

132133
\begin{funcdesc}{normcase}{path}

0 commit comments

Comments
 (0)