From 775c14a764ff3fd32bcd25d91f4c0f635722ed50 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 1 May 2021 14:04:02 -0400 Subject: refactor: remove more unneeded backward.py shims Gone are: - iitems - litems - iternext - to_bytes - to_string - binary_bytes - byte_to_int - bytes_to_ints - BUILTINS --- coverage/xmlreport.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'coverage/xmlreport.py') diff --git a/coverage/xmlreport.py b/coverage/xmlreport.py index 470e991c..db1d0116 100644 --- a/coverage/xmlreport.py +++ b/coverage/xmlreport.py @@ -11,7 +11,6 @@ import time import xml.dom.minidom from coverage import __url__, __version__, files -from coverage.backward import iitems from coverage.misc import isolate_module from coverage.report import get_analysis_to_report @@ -92,13 +91,13 @@ class XmlReporter(object): xcoverage.appendChild(xpackages) # Populate the XML DOM with the package info. - for pkg_name, pkg_data in sorted(iitems(self.packages)): + for pkg_name, pkg_data in sorted(self.packages.items()): class_elts, lhits, lnum, bhits, bnum = pkg_data xpackage = self.xml_out.createElement("package") xpackages.appendChild(xpackage) xclasses = self.xml_out.createElement("classes") xpackage.appendChild(xclasses) - for _, class_elt in sorted(iitems(class_elts)): + for _, class_elt in sorted(class_elts.items()): xclasses.appendChild(class_elt) xpackage.setAttribute("name", pkg_name.replace(os.sep, '.')) xpackage.setAttribute("line-rate", rate(lhits, lnum)) -- cgit v1.2.1