chore(python): `DebugLinkLayout` is no longer sent
What changed, and why it matters
This is a tiny cleanup change in Trezor's Python debug library. It removes a deprecated debug message type (DebugLinkLayout) from a logging helper that collapses screen-layout tokens into a single line. There is no security-relevant change: the message type was already deprecated and is no longer sent by the device, so the code merely stops handling it in log formatting.
No action required. This is a benign chore/cleanup commit with no security relevance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch narrows an isinstance check in python/src/trezorlib/debuglink.py from (messages.DebugLinkState, messages.DebugLinkLayout) to just messages.DebugLinkState. DebugLinkLayout was deprecated in commit 0e8dcbb498bac95997e70aa8c3ea4d522779c7c2 and is no longer emitted, so handling it here is dead code. The change affects only debug-log token collapsing and has no functional or security impact on firmware behavior, device communication, or the protocol.
Changed components
python/src/trezorlib/debuglink.pyInspect captured patch +1 / −1
diff --git a/python/src/trezorlib/debuglink.py b/python/src/trezorlib/debuglink.py
index 32d83ea9..8a3e78fb 100644
--- a/python/src/trezorlib/debuglink.py
+++ b/python/src/trezorlib/debuglink.py
@@ -622,7 +622,7 @@ class DebugLink:
msg = self.mapping.decode(msg_type, msg_bytes)
# Collapse tokens to make log use less lines.
- if isinstance(msg, (messages.DebugLinkState, messages.DebugLinkLayout)):
+ if isinstance(msg, messages.DebugLinkState):
msg.tokens = ["".join(msg.tokens)]
return msg
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.