Skip to content

Commit 21a2cab

Browse files
authored
bpo-43620: Remove reference to os.sep from os.path.join() doc (#25025)
- removed ambiguous reference to os.sep from os.path.join() doc
1 parent 3bb1987 commit 21a2cab

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Doc/library/os.path.rst

+4-5
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,10 @@ the :mod:`glob` module.)
306306

307307
Join one or more path components intelligently. The return value is the
308308
concatenation of *path* and any members of *\*paths* with exactly one
309-
directory separator (``os.sep``) following each non-empty part except the
310-
last, meaning that the result will only end in a separator if the last
311-
part is empty. If a component is an absolute path, all previous
312-
components are thrown away and joining continues from the absolute path
313-
component.
309+
directory separator following each non-empty part except the last, meaning
310+
that the result will only end in a separator if the last part is empty. If
311+
a component is an absolute path, all previous components are thrown away
312+
and joining continues from the absolute path component.
314313

315314
On Windows, the drive letter is not reset when an absolute path component
316315
(e.g., ``r'\foo'``) is encountered. If a component contains a drive

0 commit comments

Comments
 (0)