diff options
Diffstat (limited to 'coverage')
-rw-r--r-- | coverage/cmdline.py | 10 | ||||
-rw-r--r-- | coverage/data.py | 2 |
2 files changed, 5 insertions, 7 deletions
diff --git a/coverage/cmdline.py b/coverage/cmdline.py index 1a8a0268..7d014902 100644 --- a/coverage/cmdline.py +++ b/coverage/cmdline.py @@ -586,17 +586,17 @@ class CoverageScript(object): print(" %s" % line) elif info == 'data': self.coverage.load() + data = self.coverage.data print(info_header("data")) - print("path: %s" % self.coverage.data.filename) - print("has_arcs: %r" % self.coverage.data.has_arcs()) - summary = self.coverage.data.line_counts(fullpath=True) + print("path: %s" % self.coverage.data_files.filename) + print("has_arcs: %r" % data.has_arcs()) + summary = data.line_counts(fullpath=True) if summary: - plugins = self.coverage.data.plugin_data() filenames = sorted(summary.keys()) print("\n%d files:" % len(filenames)) for f in filenames: line = "%s: %d lines" % (f, summary[f]) - plugin = plugins.get(f) + plugin = data.plugin_name(f) if plugin: line += " [%s]" % plugin print(line) diff --git a/coverage/data.py b/coverage/data.py index be34da1b..be9ceba6 100644 --- a/coverage/data.py +++ b/coverage/data.py @@ -229,8 +229,6 @@ class CoverageData(object): lines. If `fullpath` is true, then the keys are the full pathnames of the files, otherwise they are the basenames of the files. - This is used for testing, not for actual use in the product. - Returns: dict mapping filenames to counts of lines. |