diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2019-10-02 13:23:40 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-10-02 13:26:00 -0400 |
commit | 4c6a1f3746b9d9772cae7b415fc456422b4a8bd6 (patch) | |
tree | 2b10d5fc38e595286d5613eb3512132e2cbdc044 /coverage/html.py | |
parent | 46387c0fb8781ec6ada320de19aeee6c1d39823f (diff) | |
download | python-coveragepy-git-4c6a1f3746b9d9772cae7b415fc456422b4a8bd6.tar.gz |
Clearer logic
Diffstat (limited to 'coverage/html.py')
-rw-r--r-- | coverage/html.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/html.py b/coverage/html.py index 253bda1c..e560f76b 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -90,10 +90,10 @@ class HtmlDataGeneration(object): missing_branch_arcs = analysis.missing_branch_arcs() arcs_executed = analysis.arcs_executed() - contexts_by_lineno = collections.defaultdict(list) if self.config.show_contexts: - # Lookup line number contexts. contexts_by_lineno = analysis.data.contexts_by_lineno(fr.filename) + else: + contexts_by_lineno = collections.defaultdict(list) lines = [] |