]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-114709: Fix exceptions raised by posixpath.commonpath (#114710)
authorSebastian Rittau <srittau@rittau.biz>
Sun, 18 Feb 2024 08:24:58 +0000 (09:24 +0100)
committerGitHub <noreply@github.com>
Sun, 18 Feb 2024 08:24:58 +0000 (00:24 -0800)
commit371c9708863c23ddc716085198ab07fa49968166
tree305ca06fc4fa5d87a8ff08e2a01dc3eba0a2d802
parentf9154f8f237e31e7c30f8698f980bee5e494f1e0
gh-114709: Fix exceptions raised by posixpath.commonpath (#114710)

Fix the exceptions raised by posixpath.commonpath

Raise ValueError, not IndexError when passed an empty iterable. Raise
TypeError, not ValueError when passed None.
Doc/library/os.path.rst
Lib/posixpath.py
Lib/test/test_posixpath.py
Misc/NEWS.d/next/Library/2024-01-29-13-46-41.gh-issue-114709.SQ998l.rst [new file with mode: 0644]