From 8842e1624ab5dcebfc4b2e2c6f17c5d9b0a918b4 Mon Sep 17 00:00:00 2001 From: John Hensley Date: Fri, 31 Jan 2020 17:58:28 -0500 Subject: [PATCH] Revert usage of subprocess.check_output text parameter It's the same as universal_newlines, so just use the one that works with our specified target of Python 3.5. --- securedrop_client/crypto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/securedrop_client/crypto.py b/securedrop_client/crypto.py index d531ca464..975a8562e 100644 --- a/securedrop_client/crypto.py +++ b/securedrop_client/crypto.py @@ -153,7 +153,7 @@ def fingerprints(self) -> typing.Dict[str, bool]: cmd = self._gpg_cmd_base() cmd.extend(["--list-public-keys", "--fingerprint", "--with-colons", "--fixed-list-mode", "--list-options", "no-show-photos"]) - output = subprocess.check_output(cmd, text=True) + output = subprocess.check_output(cmd, universal_newlines=True) fingerprints = {} for line in output.splitlines():