zulip_tools: Replace universal_newlines with text.

Generated by pyupgrade.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-04-26 16:45:36 -07:00
committed by Tim Abbott
parent 2afe82ba2e
commit 0451d1e47f

View File

@@ -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,