Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

zulip_tools: Replace universal_newlines with text.

Anders Kaseorg0451d1e47f27
diff --git a/scripts/lib/zulip_tools.py b/scripts/lib/zulip_tools.py
index 49bac41ce7c..e9ac1046bb7 100755
--- a/scripts/lib/zulip_tools.py
+++ b/scripts/lib/zulip_tools.py
@@ -663,7 +663,7 @@ def listening_publicly(port: int) -> List[str]:
lines = (
subprocess.check_output(
["/bin/ss", "-Hnl", filter],
- universal_newlines=True,
+ text=True,
# Hosts with IPv6 disabled will get "RTNETLINK answers: Invalid
# argument"; eat stderr to hide that
stderr=subprocess.DEVNULL,