]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Doc: Improve wording of ``os.path.commonpath()`` (GH-122627) (#122642)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 3 Aug 2024 11:29:51 +0000 (13:29 +0200)
committerGitHub <noreply@github.com>
Sat, 3 Aug 2024 11:29:51 +0000 (12:29 +0100)
Doc: Improve wording of ``os.path.commonpath()`` (GH-122627)
(cherry picked from commit 7a5c4103b094aaf1b65af6de65795d172cfe8fe0)

Co-authored-by: Matth-M <93771840+Matth-M@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Doc/library/os.path.rst

index 3eaf64b59129a385d5f674236bd84dbdb83f8f17..51e89087e7fa549429aced96c268222c5a2962d8 100644 (file)
@@ -81,7 +81,7 @@ the :mod:`glob` module.)
 
    Return the longest common sub-path of each pathname in the sequence
    *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.