]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-127381: pathlib ABCs: remove `PathBase.rename()` and `replace()` (#127658)
authorBarney Gale <barney.gale@gmail.com>
Fri, 6 Dec 2024 18:10:00 +0000 (18:10 +0000)
committerGitHub <noreply@github.com>
Fri, 6 Dec 2024 18:10:00 +0000 (18:10 +0000)
commit5b6635f772d187d6049a56bfea76855644cd4ca1
treeaa852396d04ad18c9922bbc66a8584478eeca5f4
parente59caf67cdb8dae26470f00599ea8dbb00968a73
GH-127381: pathlib ABCs: remove `PathBase.rename()` and `replace()` (#127658)

These methods are obviated by `PathBase.move()`, which can move directories
and supports any `PathBase` object as a target.
Lib/pathlib/_abc.py
Lib/pathlib/_local.py
Lib/test/test_pathlib/test_pathlib_abc.py