summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.path.rst
diff options
context:
space:
mode:
authorMatth-M <93771840+Matth-M@users.noreply.github.com>2024-08-03 11:18:59 (GMT)
committerGitHub <noreply@github.com>2024-08-03 11:18:59 (GMT)
commit7a5c4103b094aaf1b65af6de65795d172cfe8fe0 (patch)
treefb4a4f8163bad7ee0a2d022b8f2eb19c4ea06d23 /Doc/library/os.path.rst
parentefcd65cd84d5ebcc6cacb67971f235a726a205e7 (diff)
downloadcpython-7a5c4103b094aaf1b65af6de65795d172cfe8fe0.zip
cpython-7a5c4103b094aaf1b65af6de65795d172cfe8fe0.tar.gz
cpython-7a5c4103b094aaf1b65af6de65795d172cfe8fe0.tar.bz2
Doc: Improve wording of ``os.path.commonpath()`` (#122627)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Diffstat (limited to 'Doc/library/os.path.rst')
-rw-r--r--Doc/library/os.path.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst
index ac24bf0..ecbbc1d 100644
--- a/Doc/library/os.path.rst
+++ b/Doc/library/os.path.rst
@@ -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.