trezor_agent: use list comprehension

This commit is contained in:
Roman Zeyde
2015-07-04 08:51:11 +03:00
parent 14b3b500cd
commit d0c5421a3d

View File

@@ -32,10 +32,7 @@ def main():
logging.basicConfig(level=loglevel, format=fmt)
with trezor.Client(factory=trezor.TrezorLibrary) as client:
public_keys = []
for label in args.identity:
ssh_public_key = client.get_public_key(label)
public_keys.append(ssh_public_key)
public_keys = [client.get_public_key(i) for i in args.identity]
command = args.command
if not command: