From b7ca9039c68fefff93f8c787f0c1589e097c8e4f Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 8 Jul 2018 16:34:48 -0400 Subject: Be stricter about self._data --- coverage/html.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'coverage/html.py') diff --git a/coverage/html.py b/coverage/html.py index 65aac9c1..186e9d22 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -104,11 +104,11 @@ class HtmlReporter(Reporter): } self.source_tmpl = Templite(read_data("pyfile.html"), self.template_globals) - self.coverage = cov + self.data = cov.get_data() self.files = [] self.all_files_nums = [] - self.has_arcs = self.coverage.data.has_arcs() + self.has_arcs = self.data.has_arcs() self.status = HtmlStatus() self.extra_css = None self.totals = Numbers() @@ -169,7 +169,7 @@ class HtmlReporter(Reporter): """Compute a hash that changes if the file needs to be re-reported.""" m = Hasher() m.update(source) - self.coverage.data.add_to_hash(fr.filename, m) + self.data.add_to_hash(fr.filename, m) return m.hexdigest() def html_file(self, fr, analysis): -- cgit v1.2.1