]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43743 add comment stating _USE_CP_SENDFILE should not be removed (#26024)
authorGiampaolo Rodola <g.rodola@gmail.com>
Mon, 10 May 2021 20:45:06 +0000 (22:45 +0200)
committerGitHub <noreply@github.com>
Mon, 10 May 2021 20:45:06 +0000 (22:45 +0200)
Lib/shutil.py

index e29fe4d83e927790558f0d542e8e9ae392ac397a..55cfe35ab06977d9cf84741ccd94ea13cfec8073 100644 (file)
@@ -40,6 +40,8 @@ elif _WINDOWS:
     import nt
 
 COPY_BUFSIZE = 1024 * 1024 if _WINDOWS else 64 * 1024
+# This should never be removed, see rationale in:
+# https://bugs.python.org/issue43743#msg393429
 _USE_CP_SENDFILE = hasattr(os, "sendfile") and sys.platform.startswith("linux")
 _HAS_FCOPYFILE = posix and hasattr(posix, "_fcopyfile")  # macOS