aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_annotationlib.py
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2024-08-11 22:43:18 +0100
committerGitHub <noreply@github.com>2024-08-11 22:43:18 +0100
commita6644d446416dbe3eab26839a32f79c4e73d3aeb (patch)
treea356f0865fe48c81c2bba66b69dd2029b1ddc424 /Lib/test/test_annotationlib.py
parentea70439bd2b5a1c881342646f30942f527f61373 (diff)
downloadcpython-a6644d446416dbe3eab26839a32f79c4e73d3aeb.tar.gz
cpython-a6644d446416dbe3eab26839a32f79c4e73d3aeb.zip
GH-73991: Rework `pathlib.Path.copytree()` into `copy()` (#122369)
Rename `pathlib.Path.copy()` to `_copy_file()` (i.e. make it private.) Rename `pathlib.Path.copytree()` to `copy()`, and add support for copying non-directories. This simplifies the interface for users, and nicely complements the upcoming `move()` and `delete()` methods (which will also accept any type of file.) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Diffstat (limited to 'Lib/test/test_annotationlib.py')
0 files changed, 0 insertions, 0 deletions