From: Matth-M <93771840+Matth-M@users.noreply.github.com> Date: Sat, 3 Aug 2024 11:18:59 +0000 (+0100) Subject: Doc: Improve wording of ``os.path.commonpath()`` (#122627) X-Git-Tag: v3.14.0a1~897 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a5c4103b094aaf1b65af6de65795d172cfe8fe0;p=thirdparty%2FPython%2Fcpython.git Doc: Improve wording of ``os.path.commonpath()`` (#122627) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> --- diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index ac24bf05c289..ecbbc1d7605f 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.