Skip to content

Commit

Permalink
zulip: Replace deprecated distro.linux_distribution.
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Kaseorg <[email protected]>
  • Loading branch information
andersk authored and timabbott committed Oct 24, 2024
1 parent 48c6e40 commit 2675715
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zulip/zulip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 2675715

Please sign in to comment.