[elbe-devel] [PATCH v3 29/75] form: use f-strings

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


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

diff --git a/elbepack/debianize/widgets/form.py b/elbepack/debianize/widgets/form.py
index 74cee445c..af8fd7b63 100644
--- a/elbepack/debianize/widgets/form.py
+++ b/elbepack/debianize/widgets/form.py
@@ -51,7 +51,7 @@ class Form(Grid):
             # TODO - Better sanitization handling
             buf = []
             for key, value in sanitize.items():
-                buf.append("{}: {}".format(key, value))
+                buf.append(f"{key}: {value}")
             TUI.printf('\n'.join(buf))
         else:
             self.on_submit(data)
-- 
2.38.1



More information about the elbe-devel mailing list