[elbe-devel] [PATCH 30/75] edit: use f-strings

Daniel Braunwarth daniel at braunwarth.dev
Wed Nov 2 20:01:40 CET 2022


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

diff --git a/elbepack/debianize/widgets/edit.py b/elbepack/debianize/widgets/edit.py
index 670098a59..85dfccbba 100644
--- a/elbepack/debianize/widgets/edit.py
+++ b/elbepack/debianize/widgets/edit.py
@@ -8,7 +8,7 @@ import urwid
 
 
 def Edit(header='', default='', linebox=True, multiline=False):
-    this = urwid.Edit(("header", "{}\n".format(header)), default, multiline=multiline)
+    this = urwid.Edit(("header", f"{header}\n"), default, multiline=multiline)
     if linebox:
         this = urwid.LineBox(this)
     return this
-- 
2.38.1



More information about the elbe-devel mailing list