Skip to content

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Oct 13, 2024

PurePath.__init__() incorrectly uses the _raw_paths of a given
PurePath object with a different flavour, even though the procedure to
join path segments can differ between flavours.

This change makes the _raw_paths-enabled deferred joining apply only
when the path flavours match.

(cherry picked from commit cb8e599)

Co-authored-by: Barney Gale barney.gale@gmail.com
Co-authored-by: Bénédikt Tran 10796600+picnixz@users.noreply.github.com

…..))` (pythonGH-125156)

`PurePath.__init__()` incorrectly uses the `_raw_paths` of a given
`PurePath` object with a different flavour, even though the procedure to
join path segments can differ between flavours.

This change makes the `_raw_paths`-enabled deferred joining apply _only_
when the path flavours match.

(cherry picked from commit cb8e599)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@barneygale barneygale enabled auto-merge (squash) October 13, 2024 18:02
@barneygale barneygale merged commit 094d95f into python:3.13 Oct 13, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants