diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-24 12:21:15 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-24 12:21:15 -0400 |
commit | 7d968589567efd3e6e8765f7b1605e2e6d7f1ba0 (patch) | |
tree | 8171b1c1dced0f5264a2c7dbad17d8967e35638a /coverage/collector.py | |
parent | dc0d0c613de54cd5af74a1d3ac9d86235dc0aee9 (diff) | |
download | python-coveragepy-7d968589567efd3e6e8765f7b1605e2e6d7f1ba0.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.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/coverage/collector.py b/coverage/collector.py index 52a80f6..b8e0841 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() |