summaryrefslogtreecommitdiff
path: root/coverage/html.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2013-10-27 09:06:24 -0400
committerNed Batchelder <ned@nedbatchelder.com>2013-10-27 09:06:24 -0400
commit1c8f5bbc976d521b9d0cf5b68d404a5315e02c39 (patch)
tree3a5821770b509afcde9f20e8765c888f50a3cc31 /coverage/html.py
parentb330aa88f8e461afaa455f7bdd499307678e7bd4 (diff)
downloadpython-coveragepy-git-1c8f5bbc976d521b9d0cf5b68d404a5315e02c39.tar.gz
No point computing branch info if we aren't doing branch coverage.
Diffstat (limited to 'coverage/html.py')
-rw-r--r--coverage/html.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/coverage/html.py b/coverage/html.py
index 956f070e..5242236c 100644
--- a/coverage/html.py
+++ b/coverage/html.py
@@ -184,7 +184,8 @@ class HtmlReporter(Reporter):
# Get the numbers for this file.
nums = analysis.numbers
- missing_branch_arcs = analysis.missing_branch_arcs()
+ if self.arcs:
+ missing_branch_arcs = analysis.missing_branch_arcs()
# These classes determine which lines are highlighted by default.
c_run = "run hide_run"