Stop using deprecated distro.linux_distribution() (#1421)

This commit is contained in:
Yoshi 2021-10-12 09:00:47 +02:00 committed by GitHub
parent a4a0e79dc5
commit 2fe067bd32

View file

@ -290,8 +290,9 @@ def platDesc() -> str:
elif system == "Linux":
import distro # pytype: disable=import-error # pylint: disable=import-error
r = distro.linux_distribution(full_distribution_name=False)
theos = f"lin:{r[0]}:{r[1]}"
dist_id = distro.id()
dist_version = distro.version()
theos = f"lin:{dist_id}:{dist_version}"
else:
theos = system
break