From: Vladimir Serbinenko <phcoder@gmail.com>
To: grub-devel@gnu.org
Cc: Vladimir Serbinenko <phcoder@gmail.com>
Subject: [PATCH v12 11/13] import_gcry: Make compatible with python 3.4
Date: Tue, 15 Apr 2025 22:57:06 +0000 [thread overview]
Message-ID: <20250415225914.361036-12-phcoder@gmail.com> (raw)
In-Reply-To: <20250415225914.361036-1-phcoder@gmail.com>
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
---
util/import_gcry.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/util/import_gcry.py b/util/import_gcry.py
index b6ddde9cd..396ce0f68 100644
--- a/util/import_gcry.py
+++ b/util/import_gcry.py
@@ -249,15 +249,15 @@ for cipher_file in cipher_files:
if not re.search (" *};", line) is None:
escapenl = " \\" if ismddefine else ""
if not iscomma:
- fw.write (f" ,{escapenl}\n")
- fw.write (f" GRUB_UTIL_MODNAME(\"%s\"){escapenl}\n" % modname);
+ fw.write (" ,%s\n" % escapenl)
+ fw.write (" GRUB_UTIL_MODNAME(\"%s\")%s\n" % (modname, escapenl))
if ismd:
if not (mdname in mdblocksizes):
print ("ERROR: Unknown digest blocksize: %s\n"
% mdname)
exit (1)
- fw.write (f" .blocksize = %s{escapenl}\n"
- % mdblocksizes [mdname])
+ fw.write (" .blocksize = %s%s\n"
+ % (mdblocksizes [mdname], escapenl))
ismd = False
ismddefine = False
mdarg = 0
@@ -361,7 +361,7 @@ for cipher_file in cipher_files:
if isc and not m is None:
bs = m.groups()[0]
bits = m.groups()[2]
- mdname = f"_gcry_digest_spec_blake2{bs}_{bits}"
+ mdname = "_gcry_digest_spec_blake2%s_%s" % (bs, bits)
mdnames.append (mdname)
m = re.match ("(const )?gcry_md_spec_t", line)
--
2.49.0
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
next prev parent reply other threads:[~2025-04-15 23:00 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-15 22:56 [PATCH v12 00/13] Upgrade libgcrypt to 1.11 Vladimir Serbinenko
2025-04-15 22:56 ` [PATCH v12 01/13] Import libgcrypt 1.11 Vladimir Serbinenko
2025-05-15 16:42 ` Daniel Kiper
2025-04-15 22:56 ` [PATCH v12 02/13] Import b64dec from gpg-error Vladimir Serbinenko
2025-05-15 16:43 ` Daniel Kiper
2025-04-15 22:56 ` [PATCH v12 03/13] b64dec: Adjust for compilation in GRUB environment Vladimir Serbinenko
2025-05-15 16:55 ` Daniel Kiper
2025-04-15 22:56 ` [PATCH v12 04/13] Adjust import script, definitions and API users for libgcrypt 1.11 Vladimir Serbinenko
2025-05-15 16:56 ` Daniel Kiper
2025-04-15 22:57 ` [PATCH v12 05/13] Add DSA and RSA SEXP tests Vladimir Serbinenko
2025-05-15 16:57 ` Daniel Kiper
2025-04-15 22:57 ` [PATCH v12 06/13] keccak: Disable acceleration with SSE asm Vladimir Serbinenko
2025-05-15 16:58 ` Daniel Kiper
2025-04-15 22:57 ` [PATCH v12 07/13] libgcrypt: Fix coverity warnings Vladimir Serbinenko
2025-05-15 16:59 ` Daniel Kiper
2025-04-15 22:57 ` [PATCH v12 08/13] Remove now unneeded gcrypt compilation flag Vladimir Serbinenko
2025-05-15 17:03 ` Daniel Kiper
2025-04-15 22:57 ` [PATCH v12 09/13] gcry: Ignore sign-compare warnings Vladimir Serbinenko
2025-05-15 17:07 ` Daniel Kiper
2025-04-15 22:57 ` [PATCH v12 10/13] libgcrypt: Import blake family of hashes Vladimir Serbinenko
2025-04-18 9:29 ` Gary Lin via Grub-devel
2025-04-15 22:57 ` Vladimir Serbinenko [this message]
2025-05-15 17:10 ` [PATCH v12 11/13] import_gcry: Make compatible with python 3.4 Daniel Kiper
2025-04-15 22:57 ` [PATCH v12 12/13] import_gcry: Fix pylint warnings Vladimir Serbinenko
2025-05-15 17:12 ` Daniel Kiper
2025-04-15 22:57 ` [PATCH v12 13/13] libgcrypt: Don't use 64-bit division on platforms where it's slow Vladimir Serbinenko
2025-05-15 17:14 ` Daniel Kiper
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=20250415225914.361036-12-phcoder@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.