From 799c420dda7347a0b5ad3fc8f227afe33142a60f Mon Sep 17 00:00:00 2001 From: matejcik Date: Tue, 4 Apr 2023 17:11:53 +0200 Subject: [PATCH] fix(python): support all image types in firmware-fingerprint.py [no changelog] --- python/tools/firmware-fingerprint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/tools/firmware-fingerprint.py b/python/tools/firmware-fingerprint.py index 4bb67a042..a9c898ff9 100755 --- a/python/tools/firmware-fingerprint.py +++ b/python/tools/firmware-fingerprint.py @@ -21,7 +21,7 @@ from typing import BinaryIO, TextIO import click -from trezorlib import firmware +from trezorlib._internal import firmware_headers @click.command() @@ -32,7 +32,7 @@ def firmware_fingerprint(filename: BinaryIO, output: TextIO) -> None: data = filename.read() try: - click.echo(firmware.parse(data).digest().hex(), file=output) + click.echo(firmware_headers.parse_image(data).digest().hex(), file=output) except Exception as e: click.echo(e, err=True) sys.exit(2)