Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 60875db

Browse files
authored
bpo-35516: platform.system_alias() don't replace Darwin (GH-11207)
Add a comment explaining why system_alias() doesn't alias Darwin to macOS.
1 parent 17d0c05 commit 60875db

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/platform.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,9 @@ def system_alias(system, release, version):
514514
# In case one of the other tricks
515515
system = 'Windows'
516516

517+
# bpo-35516: Don't replace Darwin with macOS since input release and
518+
# version arguments can be different than the currently running version.
519+
517520
return system, release, version
518521

519522
### Various internal helpers

0 commit comments

Comments
 (0)