Skip to content

[3.12] GH-104947: Make pathlib.PureWindowsPath comparisons consistent across platforms (GH-104948)#104990

Merged
barneygale merged 1 commit intopython:3.12from
miss-islington:backport-ad0be36-3.12
May 26, 2023
Merged

[3.12] GH-104947: Make pathlib.PureWindowsPath comparisons consistent across platforms (GH-104948)#104990
barneygale merged 1 commit intopython:3.12from
miss-islington:backport-ad0be36-3.12

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented May 26, 2023

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

(cherry picked from commit ad0be36)

Co-authored-by: Barney Gale barney.gale@gmail.com
Co-authored-by: Gregory P. Smith greg@krypto.org

…across platforms (pythonGH-104948)

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

(cherry picked from commit ad0be36)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
@barneygale barneygale merged commit eca102d into python:3.12 May 26, 2023
@miss-islington miss-islington deleted the backport-ad0be36-3.12 branch May 26, 2023 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants