diff options
author | Matth-M <93771840+Matth-M@users.noreply.github.com> | 2024-08-03 11:18:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-03 11:18:59 (GMT) |
commit | 7a5c4103b094aaf1b65af6de65795d172cfe8fe0 (patch) | |
tree | fb4a4f8163bad7ee0a2d022b8f2eb19c4ea06d23 /Doc/library/os.path.rst | |
parent | efcd65cd84d5ebcc6cacb67971f235a726a205e7 (diff) | |
download | cpython-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.rst | 2 |
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. |