SIGN IN SIGN UP

GH-125069: Fix inconsistent joining in `WindowsPath(PosixPath(...))` (#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>
B
Barney Gale committed
cb8e5995d89d9b90e83cf43310ec50e177484e70
Parent: c6d7b64
Committed by GitHub <noreply@github.com> on 10/13/2024, 5:46:10 PM