diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2023-03-22 14:28:42 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-03-22 15:05:23 -0400 |
commit | 16abd82b6e87753184e8308c4b2606ff3979f8d3 (patch) | |
tree | 288f6b82ebd9ee864a05db6e66980cc63e205b49 /coverage/xmlreport.py | |
parent | 63f3e495b184ebd9aa4c9d757fb78ed148580d29 (diff) | |
download | python-coveragepy-git-16abd82b6e87753184e8308c4b2606ff3979f8d3.tar.gz |
style: use double-quotes
Diffstat (limited to 'coverage/xmlreport.py')
-rw-r--r-- | coverage/xmlreport.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/coverage/xmlreport.py b/coverage/xmlreport.py index fd2e9f81..2c8fd0cc 100644 --- a/coverage/xmlreport.py +++ b/coverage/xmlreport.py @@ -28,7 +28,7 @@ if TYPE_CHECKING: os = isolate_module(os) -DTD_URL = 'https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd' +DTD_URL = "https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd" def rate(hit: int, num: int) -> str: @@ -127,7 +127,7 @@ class XmlReporter: appendChild(xpackage, xclasses) for _, class_elt in human_sorted_items(pkg_data.elements.items()): appendChild(xclasses, class_elt) - xpackage.setAttribute("name", pkg_name.replace(os.sep, '.')) + xpackage.setAttribute("name", pkg_name.replace(os.sep, ".")) xpackage.setAttribute("line-rate", rate(pkg_data.hits, pkg_data.lines)) if has_arcs: branch_rate = rate(pkg_data.br_hits, pkg_data.branches) @@ -172,7 +172,7 @@ class XmlReporter: if analysis.numbers.n_statements == 0: return - # Create the 'lines' and 'package' XML elements, which + # Create the "lines" and "package" XML elements, which # are populated later. Note that a package == a directory. filename = fr.filename.replace("\\", "/") for source_path in self.source_paths: @@ -205,7 +205,7 @@ class XmlReporter: branch_stats = analysis.branch_stats() missing_branch_arcs = analysis.missing_branch_arcs() - # For each statement, create an XML 'line' element. + # For each statement, create an XML "line" element. for line in sorted(analysis.statements): xline = self.xml_out.createElement("line") xline.setAttribute("number", str(line)) |