mirror of
https://github.com/romanz/amodem.git
synced 2026-04-21 22:06:27 +08:00
trezor_agent: use list comprehension
This commit is contained in:
@@ -32,10 +32,7 @@ def main():
|
|||||||
logging.basicConfig(level=loglevel, format=fmt)
|
logging.basicConfig(level=loglevel, format=fmt)
|
||||||
|
|
||||||
with trezor.Client(factory=trezor.TrezorLibrary) as client:
|
with trezor.Client(factory=trezor.TrezorLibrary) as client:
|
||||||
public_keys = []
|
public_keys = [client.get_public_key(i) for i in args.identity]
|
||||||
for label in args.identity:
|
|
||||||
ssh_public_key = client.get_public_key(label)
|
|
||||||
public_keys.append(ssh_public_key)
|
|
||||||
|
|
||||||
command = args.command
|
command = args.command
|
||||||
if not command:
|
if not command:
|
||||||
|
|||||||
Reference in New Issue
Block a user