]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-125413: Move `pathlib.Path.copy()` implementation alongside `Path.info` (#129856)
authorBarney Gale <barney.gale@gmail.com>
Sun, 9 Feb 2025 12:05:23 +0000 (12:05 +0000)
committerGitHub <noreply@github.com>
Sun, 9 Feb 2025 12:05:23 +0000 (12:05 +0000)
commitc88dacb391ab95229b500dabb812e02109058ed7
treec743f31a83572e7f2e12bcdd16b6bd98885c7f66
parentd5796e64e061a5366186561d1a003c1436ad3492
GH-125413: Move `pathlib.Path.copy()` implementation alongside `Path.info` (#129856)

Move pathlib's private `CopyReader`, `LocalCopyReader`, `CopyWriter` and
`LocalCopyWriter` classes into `pathlib._os`, where they can live alongside
the low-level copying functions (`copyfileobj()` etc) and high-level path
querying interface (`PathInfo`).

This sets the stage for merging `LocalCopyReader` into `PathInfo`.

No change of behaviour; just moving some code around.
Lib/pathlib/_abc.py
Lib/pathlib/_local.py
Lib/pathlib/_os.py