aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnubhav Shelat <ashelat@redhat.com>2023-06-01 16:27:27 -0400
committerJohn Kacur <jkacur@redhat.com>2023-06-05 15:26:47 -0400
commit5e4fed8a745f70f9be1199f047069e144e9b8fd5 (patch)
tree5f5cccad2db8a05dc1dadd3c0cb5082c46442f14
parentdbd2b595ba75dc1b2bc047cd3ac6047f16460e08 (diff)
downloadrteval-5e4fed8a745f70f9be1199f047069e144e9b8fd5.tar.gz
rteval: Use f-strings in rtevalclient.py
Use f-strings in rtevalclient.py Signed-off-by: Anubhav Shelat <ashelat@redhat.com> Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r--rteval/rtevalclient.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rteval/rtevalclient.py b/rteval/rtevalclient.py
index 26c9530..7ff7d27 100644
--- a/rteval/rtevalclient.py
+++ b/rteval/rtevalclient.py
@@ -61,7 +61,7 @@ class rtevalclient:
cmpr = compr.compress(fbuf.getvalue())
data = base64.b64encode(cmpr + compr.flush())
ret = self.srv.SendReport(self.hostname, data)
- print("rtevalclient::SendReport() - Sent %i bytes (XML document length: %i bytes, compression ratio: %.02f%%)" % (len(data), doclen, (1-(float(len(data)) / float(doclen)))*100 ))
+ print(f"rtevalclient::SendReport() - Sent {len(data)} bytes (XML document length: {doclen} bytes, compression ratio: {(1-(float(len(data)) / float(doclen)))*100}:.2f)")
return ret
def SendDataAsFile(self, fname, data, decompr = False):