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 a7208601fe
commit c4d71eae2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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