Skip to content

Commit 4507253

Browse files
committed
zulip: Replace deprecated distro.linux_distribution.
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 75bea9f commit 4507253

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zulip/zulip/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,8 @@ def get_user_agent(self) -> str:
548548
pass
549549

550550
if vendor == "Linux":
551-
vendor, vendor_version, dummy = distro.linux_distribution()
551+
vendor = distro.name()
552+
vendor_version = distro.version()
552553
elif vendor == "Windows":
553554
vendor_version = platform.win32_ver()[1]
554555
elif vendor == "Darwin":

0 commit comments

Comments
 (0)