Skip to content

Commit

Permalink
gh-86009: Fix solaris detection in _USE_CP_SENDFILE check (GH-124289)
Browse files Browse the repository at this point in the history
  • Loading branch information
kulikjak committed Sep 24, 2024
1 parent f4997bb commit b169cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/shutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
# 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", "android", "solaris")))
and sys.platform.startswith(("linux", "android", "sunos")))
_HAS_FCOPYFILE = posix and hasattr(posix, "_fcopyfile") # macOS

# CMD defaults in Windows 10
Expand Down

0 comments on commit b169cf3

Please sign in to comment.