From 1c8f5bbc976d521b9d0cf5b68d404a5315e02c39 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 27 Oct 2013 09:06:24 -0400 Subject: No point computing branch info if we aren't doing branch coverage. --- coverage/html.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'coverage/html.py') 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" -- cgit v1.2.1