cpython/Lib/pathlib
Barney Gale cb8e5995d8
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>
2024-10-13 17:46:10 +00:00
..
__init__.py GH-73991: Rework `pathlib.Path.copytree()` into `copy()` (#122369) 2024-08-11 22:43:18 +01:00
_abc.py GH-73991: Prune `pathlib.Path.copy()` and `copy_into()` arguments (#123337) 2024-08-26 17:05:34 +01:00
_local.py GH-125069: Fix inconsistent joining in `WindowsPath(PosixPath(...))` (#125156) 2024-10-13 17:46:10 +00:00
_os.py GH-122890: Fix low-level error handling in `pathlib.Path.copy()` (#122897) 2024-08-24 15:11:39 +01:00