Skip to content

Commit c019013

Browse files
authored
bpo-43743 add comment stating _USE_CP_SENDFILE should not be removed (#26024)
1 parent 21fbbb9 commit c019013

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/shutil.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
import nt
4141

4242
COPY_BUFSIZE = 1024 * 1024 if _WINDOWS else 64 * 1024
43+
# This should never be removed, see rationale in:
44+
# https://bugs.python.org/issue43743#msg393429
4345
_USE_CP_SENDFILE = hasattr(os, "sendfile") and sys.platform.startswith("linux")
4446
_HAS_FCOPYFILE = posix and hasattr(posix, "_fcopyfile") # macOS
4547

0 commit comments

Comments
 (0)