diff -r bedab77d0fa3 -r d6c795b5ce33 DebugClients/Python/coverage/plugin_support.py --- a/DebugClients/Python/coverage/plugin_support.py Sat Apr 07 13:17:06 2018 +0200 +++ b/DebugClients/Python/coverage/plugin_support.py Sat Apr 07 13:35:10 2018 +0200 @@ -20,6 +20,7 @@ self.order = [] self.names = {} self.file_tracers = [] + self.configurers = [] self.current_module = None self.debug = None @@ -28,7 +29,7 @@ def load_plugins(cls, modules, config, debug=None): """Load plugins from `modules`. - Returns a list of loaded and configured plugins. + Returns a Plugins object with the loaded and configured plugins. """ plugins = cls() @@ -60,6 +61,15 @@ """ self._add_plugin(plugin, self.file_tracers) + def add_configurer(self, plugin): + """Add a configuring plugin. + + `plugin` is an instance of a third-party plugin class. It must + implement the :meth:`CoveragePlugin.configure` method. + + """ + self._add_plugin(plugin, self.configurers) + def add_noop(self, plugin): """Add a plugin that does nothing.