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 committed Oct 23, 2024
1 parent 75bea9f commit 4507253
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 4507253

Please sign in to comment.