diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-11 07:23:36 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-11 07:23:36 -0500 |
commit | 1b94835aac3268a32bfa4ce0df585dbb97457a06 (patch) | |
tree | adbc0aa1467460588e77aa6d574e1ae9abb74f0f /coverage/xmlreport.py | |
parent | 79f9f4575321fafc2ef770e3255f874db3d4b037 (diff) | |
download | python-coveragepy-git-1b94835aac3268a32bfa4ce0df585dbb97457a06.tar.gz |
style: convert more string formatting to f-strings
Diffstat (limited to 'coverage/xmlreport.py')
-rw-r--r-- | coverage/xmlreport.py | 4 |
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): |