summaryrefslogtreecommitdiffstats
path: root/Python/Python-tokenize.c
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2024-12-22 02:22:08 (GMT)
committerGitHub <noreply@github.com>2024-12-22 02:22:08 (GMT)
commit8d9f52a7be5c09c0fd4423943edadaacf6d7f917 (patch)
tree6027636f753421b139f0ce77dabea3eab1d82052 /Python/Python-tokenize.c
parentf5ba74b81979b621e38be70ec3ddad1e7f1365ce (diff)
downloadcpython-8d9f52a7be5c09c0fd4423943edadaacf6d7f917.zip
cpython-8d9f52a7be5c09c0fd4423943edadaacf6d7f917.tar.gz
cpython-8d9f52a7be5c09c0fd4423943edadaacf6d7f917.tar.bz2
GH-127807: pathlib ABCs: move private copying methods to dedicated class (#127810)
Move 9 private `PathBase` attributes and methods into a new `CopyWorker` class. Change `PathBase.copy` from a method to a `CopyWorker` instance. The methods remain private in the `CopyWorker` class. In future we might make some/all of them public so that user subclasses of `PathBase` can customize the copying process (in particular reading/writing of metadata,) but we'd need to make `PathBase` public first.
Diffstat (limited to 'Python/Python-tokenize.c')
0 files changed, 0 insertions, 0 deletions