[elbe-devel] [PATCH v3 12/75] pkgdiff: use f-strings

Daniel Braunwarth daniel at braunwarth.dev
Sun Nov 6 22:11:51 CET 2022


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

diff --git a/elbepack/commands/pkgdiff.py b/elbepack/commands/pkgdiff.py
index 8fd4cbeb3..789c70825 100644
--- a/elbepack/commands/pkgdiff.py
+++ b/elbepack/commands/pkgdiff.py
@@ -86,14 +86,12 @@ def run_command(argv):
 
     for p in fix_pkgs:
         if p not in gen_pkgs:
-            print("+<pkg>%s</pkg>" % p)
+            print(f"+<pkg>{p}</pkg>")
 
     for p in gen_pkgs:
         if p not in fix_pkgs.keys():
-            print("-<pkg>%s</pkg>" % p)
+            print(f"-<pkg>{p}</pkg>")
 
     for p in fix_pkgs:
         if p in gen_pkgs.keys() and fix_pkgs[p] != gen_pkgs[p]:
-            print(
-                "%s: Version mismatch %s != %s" %
-                (p, fix_pkgs[p], gen_pkgs[p]))
+            print(f"{p}: Version mismatch {fix_pkgs[p]} != {gen_pkgs[p]}")
-- 
2.38.1



More information about the elbe-devel mailing list