Skip to content

Commit

Permalink
Revert usage of subprocess.check_output text parameter
Browse files Browse the repository at this point in the history
It's the same as universal_newlines, so just use the one that
works with our specified target of Python 3.5.
  • Loading branch information
rmol authored and sssoleileraaa committed Jan 31, 2020
1 parent da3b732 commit 8842e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion securedrop_client/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 8842e16

Please sign in to comment.