From: Victor Stinner Date: Tue, 18 Dec 2018 18:51:35 +0000 (+0100) Subject: bpo-35516: platform.system_alias() don't replace Darwin (GH-11207) X-Git-Tag: v3.8.0a1~251 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=60875db2f67815d7d181c552bfac59e8c97619e3;p=thirdparty%2FPython%2Fcpython.git bpo-35516: platform.system_alias() don't replace Darwin (GH-11207) Add a comment explaining why system_alias() doesn't alias Darwin to macOS. --- diff --git a/Lib/platform.py b/Lib/platform.py index 9dd3f47075bf..2ab68aed7861 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