[elbe-devel] [PATCH 07/75] daemon: use f-strings

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


Signed-off-by: Daniel Braunwarth <daniel at braunwarth.dev>
---
 elbepack/commands/daemon.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/elbepack/commands/daemon.py b/elbepack/commands/daemon.py
index a89667a3e..08a3b52ef 100644
--- a/elbepack/commands/daemon.py
+++ b/elbepack/commands/daemon.py
@@ -41,7 +41,7 @@ def run_command(argv):
             if str(o) == str(d):
                 if getattr(opt, o):
                     active = True
-                    print("enable %s" % str(d))
+                    print(f"enable {d}")
                     module = "elbepack.daemons." + str(d)
                     _ = __import__(module)
                     cmdmod = sys.modules[module]
@@ -52,7 +52,7 @@ def run_command(argv):
     if not active:
         print("no daemon activated, use")
         for d in daemons:
-            print("   --%s" % d)
+            print(f"   --{d}")
         print("to activate at least one daemon")
         return
 
-- 
2.38.1



More information about the elbe-devel mailing list