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
commitda6cee398eec22d52fe18072931ebcd68e904aa2 (patch)
treec585935be53935cb0f7fdd169f7bd77434f1fb13 /coverage/html.py
parentbde6d2060bebcf7c8a3a365f9b9c01a9d801dbe9 (diff)
downloadpython-coveragepy-da6cee398eec22d52fe18072931ebcd68e904aa2.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 956f070..5242236 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"