Use platform.platform() in supportText() (#1999)

From [the documentation](https://docs.python.org/3.9/library/platform.html#platform.platform):
> Returns a single string identifying the underlying platform with as much useful information as possible.
The output is intended to be human readable rather than machine parseable. It may look different on different platforms and this is intended.
Changed in version 3.8: On macOS, the function now uses mac_ver(), if it returns a non-empty release string, to get the macOS version rather than the darwin version.

The main advantage of this change is that it provides the architecture of the platform, which is increasingly relevant as ARM systems are becoming more common.
This commit is contained in:
Sam Bradshaw 2022-08-02 19:49:02 +10:00 committed by GitHub
parent 871cc38280
commit da26fc33ba

View file

@ -905,12 +905,7 @@ def supportText() -> str:
from aqt import mw
if is_win:
platname = f"Windows {platform.win32_ver()[0]}"
elif is_mac:
platname = f"Mac {platform.mac_ver()[0]}"
else:
platname = "Linux"
platname = platform.platform()
def schedVer() -> str:
try: