From 2675715ecbf7cc2b5a851dbbacca475627659bc3 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 22 Oct 2024 21:47:53 -0700 Subject: [PATCH] zulip: Replace deprecated distro.linux_distribution. Signed-off-by: Anders Kaseorg --- zulip/zulip/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index 85e84f7a2..8d930e7e7 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -548,7 +548,8 @@ def get_user_agent(self) -> str: pass if vendor == "Linux": - vendor, vendor_version, dummy = distro.linux_distribution() + vendor = distro.name() + vendor_version = distro.version() elif vendor == "Windows": vendor_version = platform.win32_ver()[1] elif vendor == "Darwin":