From 1b94835aac3268a32bfa4ce0df585dbb97457a06 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 11 Nov 2021 07:23:36 -0500 Subject: style: convert more string formatting to f-strings --- coverage/xmlreport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coverage/xmlreport.py') diff --git a/coverage/xmlreport.py b/coverage/xmlreport.py index 8c8409dc..ebc85de4 100644 --- a/coverage/xmlreport.py +++ b/coverage/xmlreport.py @@ -67,9 +67,9 @@ class XmlReporter: xcoverage.setAttribute("version", __version__) xcoverage.setAttribute("timestamp", str(int(time.time()*1000))) xcoverage.appendChild(self.xml_out.createComment( - " Generated by coverage.py: %s " % __url__ + f" Generated by coverage.py: {__url__} " )) - xcoverage.appendChild(self.xml_out.createComment(" Based on %s " % DTD_URL)) + xcoverage.appendChild(self.xml_out.createComment(f" Based on {DTD_URL} ")) # Call xml_file for each file in the data. for fr, analysis in get_analysis_to_report(self.coverage, morfs): -- cgit v1.2.1