mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-43743 add comment stating _USE_CP_SENDFILE should not be removed (#26024)
This commit is contained in:
parent
21fbbb98ba
commit
c0190137ca
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue