diff options
author | Barney Gale <barney.gale@gmail.com> | 2025-02-26 21:07:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-26 21:07:27 (GMT) |
commit | b251d409f9cf6a84e6d7a78d284467f57c97a63a (patch) | |
tree | 1cc9ad6e65b48d5a5df7009cdfa5374be869abe2 /Python/codegen.c | |
parent | 5ba69e747fa9da984a307b2cbc9f82bac1e0db04 (diff) | |
download | cpython-b251d409f9cf6a84e6d7a78d284467f57c97a63a.zip cpython-b251d409f9cf6a84e6d7a78d284467f57c97a63a.tar.gz cpython-b251d409f9cf6a84e6d7a78d284467f57c97a63a.tar.bz2 |
GH-125413: Add private `pathlib.Path` method to write metadata (#130238)
Replace `WritablePath._copy_writer` with a new `_write_info()` method. This
method allows the target of a `copy()` to preserve metadata.
Replace `pathlib._os.CopyWriter` and `LocalCopyWriter` classes with new
`copy_file()` and `copy_info()` functions. The `copy_file()` function uses
`source_path.info` wherever possible to save on `stat()`s.
Diffstat (limited to 'Python/codegen.c')
0 files changed, 0 insertions, 0 deletions