aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2022-11-09 12:47:09 -0500
committerJohn Kacur <jkacur@redhat.com>2022-11-09 12:47:09 -0500
commit96ce02046afedfac27c69c30d6ee6b9511238131 (patch)
tree81d9a971bcbadb5e881cd1a6c2a28e85aa6aec13
parent0f44bad0f6d95448425903c4ec3a3fa8093ae6e7 (diff)
downloadrteval-96ce02046afedfac27c69c30d6ee6b9511238131.tar.gz
rteval: rtevalReport.py: Convert regular strings to f-strings
Convert regular strings to f-strings in rtevalReport.py Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r--rteval/rtevalReport.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rteval/rtevalReport.py b/rteval/rtevalReport.py
index fdfaed5..af3e6c9 100644
--- a/rteval/rtevalReport.py
+++ b/rteval/rtevalReport.py
@@ -100,11 +100,11 @@ class rtevalReport:
def _show_report(self, xmlfile, xsltfile):
'''summarize a previously generated xml file'''
- print("Loading %s for summarizing" % xmlfile)
+ print(f"Loading {xmlfile} for summarizing")
xsltfullpath = os.path.join(self.__installdir, xsltfile)
if not os.path.exists(xsltfullpath):
- raise RuntimeError("can't find XSL template (%s)!" % xsltfullpath)
+ raise RuntimeError(f"can't find XSL template ({xsltfullpath})!")
xmlreport = xmlout.XMLOut('rteval', self.__version)
xmlreport.LoadReport(xmlfile)
@@ -131,7 +131,7 @@ class rtevalReport:
def _tar_results(self):
if not os.path.isdir(self.__reportdir):
- raise RuntimeError("no such directory: %s" % self.__reportdir)
+ raise RuntimeError(f"no such directory: {self.__reportdir}")
dirname = os.path.dirname(self.__reportdir)
rptdir = os.path.basename(self.__reportdir)