Skip to content

Conversation

@barneygale
Copy link
Contributor

@barneygale barneygale 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)

…xPath(...))` (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.

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>.
(cherry picked from commit cb8e599)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
@barneygale barneygale enabled auto-merge (squash) October 13, 2024 18:03
@barneygale barneygale merged commit f49221a into python:3.12 Oct 13, 2024
28 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.

1 participant