Skip to content

Commit

Permalink
Doc: Improve wording of os.path.commonpath() (python#122627)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Turner <[email protected]>
  • Loading branch information
Matth-M and AA-Turner authored Aug 3, 2024
1 parent efcd65c commit 7a5c410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/os.path.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ the :mod:`glob` module.)

Return the longest common sub-path of each pathname in the iterable
*paths*. Raise :exc:`ValueError` if *paths* contain both absolute
and relative pathnames, the *paths* are on the different drives or
and relative pathnames, if *paths* are on different drives, or
if *paths* is empty. Unlike :func:`commonprefix`, this returns a
valid path.

Expand Down

0 comments on commit 7a5c410

Please sign in to comment.