From ac6e23fb87aa0776c78fedaa26795ed0cec2c565 Mon Sep 17 00:00:00 2001 From: matejcik Date: Mon, 9 Dec 2019 12:59:37 +0100 Subject: [PATCH] mako: improve local variable name --- core/src/apps/webauthn/knownapps.py.mako | 4 ++-- legacy/firmware/u2f_knownapps.h.mako | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/apps/webauthn/knownapps.py.mako b/core/src/apps/webauthn/knownapps.py.mako index 4e581898e0..a60a2d9171 100644 --- a/core/src/apps/webauthn/knownapps.py.mako +++ b/core/src/apps/webauthn/knownapps.py.mako @@ -21,8 +21,8 @@ from hashlib import sha256 fido_entries = [] for app in fido: - for u2f in app.u2f: - fido_entries.append((bytes.fromhex(u2f), "U2F", app)) + for app_id in app.u2f: + fido_entries.append((bytes.fromhex(app_id), "U2F", app)) for origin in app.webauthn: rp_id_hash = sha256(origin.encode()).digest() fido_entries.append((rp_id_hash, "WebAuthn", app)) diff --git a/legacy/firmware/u2f_knownapps.h.mako b/legacy/firmware/u2f_knownapps.h.mako index 723d2862dc..f2e4ea6c11 100644 --- a/legacy/firmware/u2f_knownapps.h.mako +++ b/legacy/firmware/u2f_knownapps.h.mako @@ -20,8 +20,8 @@ def c_bytes(rp_id_hash): fido_entries = [] for app in fido: - for u2f in app.u2f: - fido_entries.append((bytes.fromhex(u2f), "U2F", "", app)) + for app_id in app.u2f: + fido_entries.append((bytes.fromhex(app_id), "U2F", "", app)) for origin in app.webauthn: rp_id_hash = sha256(origin.encode()).digest() origin_str = " ({})".format(origin)