summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-12-18 18:51:35 (GMT)
committerGitHub <noreply@github.com>2018-12-18 18:51:35 (GMT)
commit60875db2f67815d7d181c552bfac59e8c97619e3 (patch)
tree40386e3a14aa25da82d51e63690d098c758d980f /Lib
parent17d0c0595e101c4ce76b58e55de37e6b5083e6cd (diff)
downloadcpython-60875db2f67815d7d181c552bfac59e8c97619e3.zip
cpython-60875db2f67815d7d181c552bfac59e8c97619e3.tar.gz
cpython-60875db2f67815d7d181c552bfac59e8c97619e3.tar.bz2
bpo-35516: platform.system_alias() don't replace Darwin (GH-11207)
Add a comment explaining why system_alias() doesn't alias Darwin to macOS.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/platform.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/platform.py b/Lib/platform.py
index 9dd3f47..2ab68ae 100755
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -514,6 +514,9 @@ def system_alias(system, release, version):
# In case one of the other tricks
system = 'Windows'
+ # bpo-35516: Don't replace Darwin with macOS since input release and
+ # version arguments can be different than the currently running version.
+
return system, release, version
### Various internal helpers