summaryrefslogtreecommitdiff
path: root/coverage/html.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-11-19 21:58:40 -0500
committerNed Batchelder <ned@nedbatchelder.com>2012-11-19 21:58:40 -0500
commitdc438780abf10e5257bb177728066e16201e3916 (patch)
tree172dc6b0d7929fb0fade8562e2e7734c985de532 /coverage/html.py
parentc405d15412a1e8f2d14ee0ecea9c5d4fe55641de (diff)
downloadpython-coveragepy-git-dc438780abf10e5257bb177728066e16201e3916.tar.gz
Branch coverage is computed more accurately, #156.
Diffstat (limited to 'coverage/html.py')
-rw-r--r--coverage/html.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/coverage/html.py b/coverage/html.py
index 6a6c648e..ed8920f2 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,
}