mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-10 15:30:55 +00:00
python: style
This commit is contained in:
parent
e900173b9c
commit
15e33b42c0
@ -74,9 +74,7 @@ def validate_firmware(version, fw, expected_fingerprint=None):
|
|||||||
fingerprint_onev2 = firmware.digest(
|
fingerprint_onev2 = firmware.digest(
|
||||||
firmware.FirmwareFormat.TREZOR_ONE_V2, fw.embedded_onev2
|
firmware.FirmwareFormat.TREZOR_ONE_V2, fw.embedded_onev2
|
||||||
).hex()
|
).hex()
|
||||||
click.echo(
|
click.echo("Embedded v2 image fingerprint: {}".format(fingerprint_onev2))
|
||||||
"Embedded v2 image fingerprint: {}".format(fingerprint_onev2)
|
|
||||||
)
|
|
||||||
if expected_fingerprint and fingerprint != expected_fingerprint:
|
if expected_fingerprint and fingerprint != expected_fingerprint:
|
||||||
click.echo("Expected fingerprint: {}".format(expected_fingerprint))
|
click.echo("Expected fingerprint: {}".format(expected_fingerprint))
|
||||||
click.echo("Fingerprints do not match, aborting.")
|
click.echo("Fingerprints do not match, aborting.")
|
||||||
|
Loading…
Reference in New Issue
Block a user