summaryrefslogtreecommitdiff
path: root/coverage/collector.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-07-24 12:21:15 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-07-24 12:21:15 -0400
commit0eb73a211c01852cd3aa9be1c8cc5f9abdb5af32 (patch)
tree81b51481690baad7e5ccbf866b83f0b5fc11a742 /coverage/collector.py
parentb99fbf1ff6a06309ecf6cce8d6ae97dee5626784 (diff)
downloadpython-coveragepy-git-0eb73a211c01852cd3aa9be1c8cc5f9abdb5af32.tar.gz
Use more specific names than 'plugins', since there will be more of them in the future.
Diffstat (limited to 'coverage/collector.py')
-rw-r--r--coverage/collector.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/coverage/collector.py b/coverage/collector.py
index 52a80f60..b8e08414 100644
--- a/coverage/collector.py
+++ b/coverage/collector.py
@@ -140,8 +140,9 @@ class Collector(object):
# pairs as keys (if branch coverage).
self.data = {}
- # A dictionary mapping filenames to plugin names that will handle them.
- self.plugin_data = {}
+ # A dictionary mapping filenames to file tracer plugin names that will
+ # handle them.
+ self.file_tracers = {}
# The .should_trace_cache attribute is a cache from filenames to
# coverage.FileDisposition objects, or None. When a file is first
@@ -193,8 +194,8 @@ class Collector(object):
)
)
- if hasattr(tracer, 'plugin_data'):
- tracer.plugin_data = self.plugin_data
+ if hasattr(tracer, 'file_tracers'):
+ tracer.file_tracers = self.file_tracers
if hasattr(tracer, 'threading'):
tracer.threading = self.threading
if hasattr(tracer, 'check_include'):
@@ -309,6 +310,6 @@ class Collector(object):
covdata.set_arcs(abs_file_dict(self.data))
else:
covdata.set_lines(abs_file_dict(self.data))
- covdata.set_plugins(abs_file_dict(self.plugin_data))
+ covdata.set_file_tracers(abs_file_dict(self.file_tracers))
self.reset()