summaryrefslogtreecommitdiff
path: root/alot/commands/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/commands/utils.py')
-rw-r--r--alot/commands/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/commands/utils.py b/alot/commands/utils.py
index cb696eea..b7915378 100644
--- a/alot/commands/utils.py
+++ b/alot/commands/utils.py
@@ -90,7 +90,7 @@ def _get_keys(ui, encrypt_keyids, block_error=False, signed_only=False):
signed_only=signed_only)
except GPGProblem as e:
if e.code == GPGCode.AMBIGUOUS_NAME:
- tmp_choices = [k.uids[0].uid + " (" + k.fpr + ")" for k in
+ tmp_choices = ['{} ({})'.format(k.uids[0].uid, k.fpr) for k in
crypto.list_keys(hint=keyid)]
choices = {str(i): t for i, t in enumerate(tmp_choices, 1)}
keys_to_return = {str(i): t for i, t in enumerate([k for k in