summaryrefslogtreecommitdiff
path: root/coverage/summary.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/summary.py')
-rw-r--r--coverage/summary.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/coverage/summary.py b/coverage/summary.py
index 271b648a..95afbcf0 100644
--- a/coverage/summary.py
+++ b/coverage/summary.py
@@ -1,5 +1,5 @@
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
-# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
"""Summary reporting"""
@@ -16,7 +16,8 @@ class SummaryReporter(Reporter):
def __init__(self, coverage, config):
super(SummaryReporter, self).__init__(coverage, config)
- self.branches = coverage.data.has_arcs()
+ data = coverage.get_data()
+ self.branches = data.has_arcs()
def report(self, morfs, outfile=None):
"""Writes a report summarizing coverage statistics per module.