30 lines
991 B
Diff
30 lines
991 B
Diff
From 2de834b44c2a731bc25449d84456396c0d519198 Mon Sep 17 00:00:00 2001
|
|
From: Anubhav Shelat <ashelat@redhat.com>
|
|
Date: Thu, 1 Jun 2023 16:27:28 -0400
|
|
Subject: rteval: Use f-strings in rtevalConfig
|
|
|
|
Use f-strings in rtevalConfig.py
|
|
|
|
Signed-off-by: Anubhav Shelat <ashelat@redhat.com>
|
|
Signed-off-by: John Kacur <jkacur@redhat.com>
|
|
---
|
|
rteval/rtevalConfig.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/rteval/rtevalConfig.py b/rteval/rtevalConfig.py
|
|
index de88924642ca..41f1a567720f 100644
|
|
--- a/rteval/rtevalConfig.py
|
|
+++ b/rteval/rtevalConfig.py
|
|
@@ -115,7 +115,7 @@ class rtevalCfgSection:
|
|
"Simple method for dumping config when object is used as a string"
|
|
if not self.__cfgdata:
|
|
return "# empty"
|
|
- return "\n".join(["%s: %s" % (k, v) for k, v in list(self.__cfgdata.items())]) + "\n"
|
|
+ return "\n".join([f"{k}: {v}" for k, v in list(self.__cfgdata.items())]) + "\n"
|
|
|
|
|
|
def __setattr__(self, key, val):
|
|
--
|
|
2.40.1
|
|
|