summaryrefslogtreecommitdiff
path: root/coverage/xmlreport.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/xmlreport.py')
-rw-r--r--coverage/xmlreport.py4
1 files changed, 2 insertions, 2 deletions
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):