From 0451d1e47f27617751623913e2cbbaf191eef659 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 26 Apr 2022 16:45:36 -0700 Subject: [PATCH] zulip_tools: Replace universal_newlines with text. Generated by pyupgrade. Signed-off-by: Anders Kaseorg --- scripts/lib/zulip_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/zulip_tools.py b/scripts/lib/zulip_tools.py index 49bac41ce7..e9ac1046bb 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,