]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: Improve wording of ``os.path.commonpath()`` (#122627)
authorMatth-M <93771840+Matth-M@users.noreply.github.com>
Sat, 3 Aug 2024 11:18:59 +0000 (12:18 +0100)
committerGitHub <noreply@github.com>
Sat, 3 Aug 2024 11:18:59 +0000 (11:18 +0000)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Doc/library/os.path.rst

index ac24bf05c289b69ae5390f9e04ab39f295ed89b2..ecbbc1d7605f9f86177b2fb482203b638f4f4596 100644 (file)
@@ -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.