Commit 183ef68f authored by anonym's avatar anonym
Browse files

Simplify code.

KISS your nested list comprehensions goodbye! :)
parent eb3b71c8
......@@ -46,7 +46,10 @@ if __name__ == '__main__':
.format(path=key_path, error=e.stderr.decode()))
keys = gnupg.GPG().scan_keys(key_path)
uids = set([uid for key in keys for uid in key['uids']])
uids = set()
for key in keys:
for uid in key['uids']:
title = ngettext("Key Imported", "Keys Imported", len(keys))
# Translators: Don't translate {uids}, it's a placeholder and
# will be replaced.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment