diff options
author | Malcolm Smith <smith@chaquo.com> | 2024-03-11 19:25:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-11 19:25:39 (GMT) |
commit | 872c0714fcdc168ce4a69bdd0346f2d5dd488ec2 (patch) | |
tree | 84934c17e5561cc36d337d83b436fcc5bb40fd88 /Lib/shutil.py | |
parent | 9f983e00ec55b87a098a4c8229fe5bb9acb9f3ac (diff) | |
download | cpython-872c0714fcdc168ce4a69bdd0346f2d5dd488ec2.zip cpython-872c0714fcdc168ce4a69bdd0346f2d5dd488ec2.tar.gz cpython-872c0714fcdc168ce4a69bdd0346f2d5dd488ec2.tar.bz2 |
gh-71052: Change Android's `sys.platform` from "linux" to "android"
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Diffstat (limited to 'Lib/shutil.py')
-rw-r--r-- | Lib/shutil.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/shutil.py b/Lib/shutil.py index c19ea06..f8be82d 100644 --- a/Lib/shutil.py +++ b/Lib/shutil.py @@ -47,7 +47,8 @@ else: 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") +_USE_CP_SENDFILE = (hasattr(os, "sendfile") + and sys.platform.startswith(("linux", "android"))) _HAS_FCOPYFILE = posix and hasattr(posix, "_fcopyfile") # macOS # CMD defaults in Windows 10 |