From 4c036d2ce7110116f10f6fb786a1aa5d37376898 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sun, 22 May 2016 23:10:12 +0300 Subject: [PATCH] gpg: fixup str/bytes issues --- trezor_agent/gpg/keyring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trezor_agent/gpg/keyring.py b/trezor_agent/gpg/keyring.py index 8dbca15..1865478 100644 --- a/trezor_agent/gpg/keyring.py +++ b/trezor_agent/gpg/keyring.py @@ -137,7 +137,7 @@ def sign_digest(sock, keygrip, digest): def get_keygrip(user_id): """Get a keygrip of the primary GPG key of the specified user.""" args = ['gpg2', '--list-keys', '--with-keygrip', user_id] - output = subprocess.check_output(args) + output = subprocess.check_output(args).decode('ascii') return re.findall(r'Keygrip = (\w+)', output)[0]