]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] GH-104947: Make pathlib.PureWindowsPath comparisons consistent across platform...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 26 May 2023 18:33:09 +0000 (11:33 -0700)
committerGitHub <noreply@github.com>
Fri, 26 May 2023 18:33:09 +0000 (18:33 +0000)
commiteca102ddac77a42c6fda62a283fe0802e0ff5549
treebe4a6caed421dada9324c43afa0974d861f1895e
parentdcee0aa9119243c294df820d6586d539ff039d3d
[3.12] GH-104947: Make pathlib.PureWindowsPath comparisons consistent across platforms (GH-104948) (GH-104990)

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

(cherry picked from commit ad0be361c9922a918c7c3eaf83e1d8f2b019279c)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
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]