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
1 changed files with 1 additions and 1 deletions

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,