https://github.com/python/cpython/commit/7a5c4103b094aaf1b65af6de65795d172cfe8fe0 commit: 7a5c4103b094aaf1b65af6de65795d172cfe8fe0 branch: main author: Matth-M <[email protected]> committer: AA-Turner <[email protected]> date: 2024-08-03T11:18:59Z summary:
Doc: Improve wording of ``os.path.commonpath()`` (#122627) Co-authored-by: Adam Turner <[email protected]> files: M Doc/library/os.path.rst diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index ac24bf05c289b6..ecbbc1d7605f9f 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. _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
