]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-104947: Make pathlib.PureWindowsPath comparisons consistent across platforms ...
authorBarney Gale <barney.gale@gmail.com>
Fri, 26 May 2023 18:04:02 +0000 (19:04 +0100)
committerGitHub <noreply@github.com>
Fri, 26 May 2023 18:04:02 +0000 (18:04 +0000)
commitad0be361c9922a918c7c3eaf83e1d8f2b019279c
tree508b0034838246178e396dd1399aed954802d3ca
parent060277d96bf4ba86df8e4d65831a8cbdfeb51fc5
GH-104947: Make pathlib.PureWindowsPath comparisons consistent across platforms (GH-104948)

Use `str.lower()` rather than `ntpath.normcase()` to normalize case of
Windows paths. This restores behaviour from Python 3.11.

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Lib/pathlib.py
Lib/test/test_pathlib.py
Misc/NEWS.d/next/Library/2023-05-25-22-54-20.gh-issue-104947.hi6TUr.rst [new file with mode: 0644]