[elbe-devel] [PATCH v3 65/75] templates: use f-strings

Daniel Braunwarth daniel at braunwarth.dev
Sun Nov 6 22:12:44 CET 2022


Signed-off-by: Daniel Braunwarth <daniel at braunwarth.dev>
---
 elbepack/templates.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/templates.py b/elbepack/templates.py
index d51fc3b33..4d1ced257 100644
--- a/elbepack/templates.py
+++ b/elbepack/templates.py
@@ -89,6 +89,6 @@ def get_initvm_preseed(xml):
 def preseed_to_text(pres):
     retval = ""
     for k, v in pres.items():
-        retval += "%s\t%s\t%s\t%s\n" % (k[0], k[1], v[0], v[1])
+        retval += f"{k[0]}\t{k[1]}\t{v[0]}\t{v[1]}\n"
 
     return retval
-- 
2.38.1



More information about the elbe-devel mailing list