From 61a3f737c4edbcbcd9468d47bd8025613ed590f7 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 19 Nov 2012 21:58:40 -0500 Subject: Branch coverage is computed more accurately, #156. --- coverage/html.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'coverage/html.py') diff --git a/coverage/html.py b/coverage/html.py index 6a6c648..ed8920f 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -162,7 +162,6 @@ class HtmlReporter(Reporter): nums = analysis.numbers missing_branch_arcs = analysis.missing_branch_arcs() - n_par = 0 # accumulated below. arcs = self.arcs # These classes determine which lines are highlighted by default. @@ -187,7 +186,6 @@ class HtmlReporter(Reporter): line_class.append(c_mis) elif self.arcs and lineno in missing_branch_arcs: line_class.append(c_par) - n_par += 1 annlines = [] for b in missing_branch_arcs[lineno]: if b < 0: @@ -234,7 +232,6 @@ class HtmlReporter(Reporter): # Save this file's information for the index file. index_info = { 'nums': nums, - 'par': n_par, 'html_filename': html_filename, 'name': cu.name, } -- cgit v1.2.1