From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH] bareboxtlv-generator: make compatible to python < 3.12
Date: Thu, 12 Mar 2026 11:11:39 +0100 [thread overview]
Message-ID: <20260312101139.4129705-1-s.hauer@pengutronix.de> (raw)
Older python versions < 3.12 do not allow nested " in f-strings. Use '
instead.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
scripts/bareboxtlv-generator/bareboxtlv-generator.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/bareboxtlv-generator/bareboxtlv-generator.py b/scripts/bareboxtlv-generator/bareboxtlv-generator.py
index 2eba0aeb23..806d2d8b94 100755
--- a/scripts/bareboxtlv-generator/bareboxtlv-generator.py
+++ b/scripts/bareboxtlv-generator/bareboxtlv-generator.py
@@ -327,7 +327,7 @@ class FactoryDataset:
raise ValueError(f"{name}: Invalid hex string for bytes format")
if "length" in tag:
if tag["length"]!=len(bin):
- raise ValueError(f"{name}: schema requires this byte sequence to be {tag["length"]} bytes but the given sequence is {len(bin)} byte long.")
+ raise ValueError(f"{name}: schema requires this byte sequence to be {tag['length']} bytes but the given sequence is {len(bin)} byte long.")
fmt = f"{len(bin)}s"
if len(bin) > 2**16 - 1:
raise ValueError(f"Bytes {name} is too long!")
--
2.47.3
next reply other threads:[~2026-03-12 10:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-12 10:11 Sascha Hauer [this message]
2026-03-12 11:01 ` Jonas Rebmann
2026-03-13 14:48 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260312101139.4129705-1-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox