https://github.com/python/cpython/commit/b169cf394fe70dfbc7bbe22ae703be3b21845add
commit: b169cf394fe70dfbc7bbe22ae703be3b21845add
branch: main
author: Jakub KulĂ­k <[email protected]>
committer: encukou <[email protected]>
date: 2024-09-24T22:23:17+02:00
summary:

gh-86009: Fix solaris detection in `_USE_CP_SENDFILE` check (GH-124289)

files:
M Lib/shutil.py

diff --git a/Lib/shutil.py b/Lib/shutil.py
index 89c12b76b61dfc..dab3ca5ee91245 100644
--- a/Lib/shutil.py
+++ b/Lib/shutil.py
@@ -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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to