From d0c5421a3d4c7afd6545eb2d79755ed88dc9278f Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sat, 4 Jul 2015 08:51:11 +0300 Subject: [PATCH] trezor_agent: use list comprehension --- sshagent/trezor_agent.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sshagent/trezor_agent.py b/sshagent/trezor_agent.py index 19f2477..8610450 100644 --- a/sshagent/trezor_agent.py +++ b/sshagent/trezor_agent.py @@ -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: