From 56e6778468bb5867cb2e51210fbb672ad6d84697 Mon Sep 17 00:00:00 2001 From: Yoshi Date: Tue, 12 Oct 2021 09:00:47 +0200 Subject: [PATCH] Stop using deprecated distro.linux_distribution() (#1421) --- pylib/anki/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pylib/anki/utils.py b/pylib/anki/utils.py index 3f0a7f476..61995ffec 100644 --- a/pylib/anki/utils.py +++ b/pylib/anki/utils.py @@ -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