summaryrefslogtreecommitdiffstats
path: root/Python/codecs.c
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2024-08-11 21:43:18 (GMT)
committerGitHub <noreply@github.com>2024-08-11 21:43:18 (GMT)
commita6644d446416dbe3eab26839a32f79c4e73d3aeb (patch)
treea356f0865fe48c81c2bba66b69dd2029b1ddc424 /Python/codecs.c
parentea70439bd2b5a1c881342646f30942f527f61373 (diff)
downloadcpython-a6644d446416dbe3eab26839a32f79c4e73d3aeb.zip
cpython-a6644d446416dbe3eab26839a32f79c4e73d3aeb.tar.gz
cpython-a6644d446416dbe3eab26839a32f79c4e73d3aeb.tar.bz2
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 'Python/codecs.c')
0 files changed, 0 insertions, 0 deletions