mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
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:
parent
a7208601fe
commit
c4d71eae2f
1 changed files with 1 additions and 6 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue