summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-03-28 06:38:02 -0400
committerNed Batchelder <ned@nedbatchelder.com>2017-03-28 06:38:02 -0400
commit15492b8a68dbe91a5a6529524f9a09c19e363216 (patch)
tree07c9f3f4644bb7c75ab469e0680c2cef4ede4ffc /coverage/control.py
parentc2636f945f5c46597f71479ac8eae3a141110cf5 (diff)
downloadpython-coveragepy-git-15492b8a68dbe91a5a6529524f9a09c19e363216.tar.gz
Clean up of the new plugin method. Thanks, Emil Madsen
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/coverage/control.py b/coverage/control.py
index 1f79e2f0..4c43ee38 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -857,6 +857,7 @@ class Coverage(object):
self.data.add_run_info(note=self.config.note)
def _find_plugin_files(self, src_dir):
+ """Get executable files from the plugins."""
for plugin in self.plugins:
for x_file in plugin.find_executable_files(src_dir):
yield x_file, plugin._coverage_plugin_name
@@ -868,7 +869,7 @@ class Coverage(object):
and add them as unexecuted files in `self.data`.
"""
- py_files = ((py_file, None) for py_file in files.find_python_files(src_dir))
+ py_files = ((py_file, None) for py_file in find_python_files(src_dir))
plugin_files = self._find_plugin_files(src_dir)
for file_path, plugin_name in itertools.chain(py_files, plugin_files):