diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2018-06-19 15:27:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-19 15:27:29 (GMT) |
commit | c7f02a965936f197354d7f4e6360f4cfc86817ed (patch) | |
tree | 9402cdb5daa1881eefce00dbc70c8b2dfc7f40f7 /Modules/posixmodule.c | |
parent | 936f03e7fafc28fd6fdfba11d162c776b89c0167 (diff) | |
download | cpython-c7f02a965936f197354d7f4e6360f4cfc86817ed.zip cpython-c7f02a965936f197354d7f4e6360f4cfc86817ed.tar.gz cpython-c7f02a965936f197354d7f4e6360f4cfc86817ed.tar.bz2 |
bpo-33671 / shutil.copyfile: use memoryview() with dynamic size on Windows (#7681)
bpo-33671
* use memoryview() with size == file size on Windows, see https://github.com/python/cpython/pull/7160#discussion_r195405230
* release intermediate (sliced) memoryview immediately
* replace "OSX" occurrences with "macOS"
* add some unittests for copyfileobj()
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 51fc1c5..435e5f6 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -8774,12 +8774,12 @@ os._fcopyfile flags: int / -Efficiently copy content or metadata of 2 regular file descriptors (OSX). +Efficiently copy content or metadata of 2 regular file descriptors (macOS). [clinic start generated code]*/ static PyObject * os__fcopyfile_impl(PyObject *module, int infd, int outfd, int flags) -/*[clinic end generated code: output=8e8885c721ec38e3 input=aeb9456804eec879]*/ +/*[clinic end generated code: output=8e8885c721ec38e3 input=69e0770e600cb44f]*/ { int ret; |