From 60875db2f67815d7d181c552bfac59e8c97619e3 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 18 Dec 2018 19:51:35 +0100 Subject: [PATCH] bpo-35516: platform.system_alias() don't replace Darwin (GH-11207) Add a comment explaining why system_alias() doesn't alias Darwin to macOS. --- Lib/platform.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/platform.py b/Lib/platform.py index 9dd3f47075b..2ab68aed786 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