27 lines
842 B
Diff
27 lines
842 B
Diff
From 67c5a4dc31f7dd8a6204a1a636fcec4e8f17a86b Mon Sep 17 00:00:00 2001
|
|
From: Leah Leshchinsky <lleshchi@redhat.com>
|
|
Date: Fri, 28 Oct 2022 12:52:46 -0400
|
|
Subject: [PATCH 1/4] tuna: tuna_gui.py use fstrings
|
|
|
|
Add fstrings where possible to improve readabilty
|
|
|
|
Signed-off-by: Leah Leshchinsky <lleshchi@redhat.com>
|
|
Signed-off-by: John Kacur <jkacur@redhat.com>
|
|
|
|
diff --git a/tuna/tuna_gui.py b/tuna/tuna_gui.py
|
|
index f1f2caacbcba..459f90303ed5 100755
|
|
--- a/tuna/tuna_gui.py
|
|
+++ b/tuna/tuna_gui.py
|
|
@@ -33,7 +33,7 @@ class main_gui:
|
|
if self.check_root():
|
|
sys.exit(1)
|
|
for dir in tuna_glade_dirs:
|
|
- tuna_glade = "%s/tuna_gui.glade" % dir
|
|
+ tuna_glade = f"{dir}/tuna_gui.glade"
|
|
if os.access(tuna_glade, os.F_OK):
|
|
break
|
|
self.wtree = Gtk.Builder()
|
|
--
|
|
2.31.1
|
|
|