Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
changes from feedback
  • Loading branch information
devnexen committed Feb 13, 2022
commit db0b714a8ed3822f70a8a6be0129d3c9d445430f
2 changes: 1 addition & 1 deletion Lib/shutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
# This should never be removed, see rationale in:
# https://bugs.python.org/issue43743#msg393429
# senfile on solaris systems is capable of copying on regular file descriptors.
_USE_CP_SENDFILE = hasattr(os, "sendfile") and (sys.platform.startswith("linux") or sys.platform.startswith("sunos"))
_USE_CP_SENDFILE = hasattr(os, "sendfile") and sys.platform.startswith(("linux", "sunos"))
_HAS_FCOPYFILE = posix and hasattr(posix, "_fcopyfile") # macOS

# CMD defaults in Windows 10
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Enabling ``os.sendfile`` on shlib on Solaris based systems.
Enable use of :func:`os.sendfile` in :mod:`shlib` on Solaris based systems.