mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Stop using deprecated distro.linux_distribution() (#1421)
This commit is contained in:
parent
5d093e1142
commit
56e6778468
1 changed files with 3 additions and 2 deletions
|
@ -290,8 +290,9 @@ def platDesc() -> str:
|
||||||
elif system == "Linux":
|
elif system == "Linux":
|
||||||
import distro # pytype: disable=import-error # pylint: disable=import-error
|
import distro # pytype: disable=import-error # pylint: disable=import-error
|
||||||
|
|
||||||
r = distro.linux_distribution(full_distribution_name=False)
|
dist_id = distro.id()
|
||||||
theos = f"lin:{r[0]}:{r[1]}"
|
dist_version = distro.version()
|
||||||
|
theos = f"lin:{dist_id}:{dist_version}"
|
||||||
else:
|
else:
|
||||||
theos = system
|
theos = system
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue