diff options
author | Barney Gale <barney.gale@gmail.com> | 2024-10-13 17:46:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-13 17:46:10 (GMT) |
commit | cb8e5995d89d9b90e83cf43310ec50e177484e70 (patch) | |
tree | 0a986d234ad90462a8a239431606a69511bc312b /Python/bytecodes.c | |
parent | c6d7b644c2425b397cfb641f336bea70eb8a329a (diff) | |
download | cpython-cb8e5995d89d9b90e83cf43310ec50e177484e70.zip cpython-cb8e5995d89d9b90e83cf43310ec50e177484e70.tar.gz cpython-cb8e5995d89d9b90e83cf43310ec50e177484e70.tar.bz2 |
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>
Diffstat (limited to 'Python/bytecodes.c')
0 files changed, 0 insertions, 0 deletions