diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-26 06:56:58 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-26 06:56:58 -0400 |
commit | 882171549d866c326fc54c0d6b0744c61ecfc539 (patch) | |
tree | c1a98cda25ca3d36f612fa1e2e1da96a1e21b419 /coverage/plugin_support.py | |
parent | 00b076ba91adf36d568f991913579dd566c64924 (diff) | |
download | python-coveragepy-git-882171549d866c326fc54c0d6b0744c61ecfc539.tar.gz |
Get rid of napoleon style docstrings, they don't format nicely.
Diffstat (limited to 'coverage/plugin_support.py')
-rw-r--r-- | coverage/plugin_support.py | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/coverage/plugin_support.py b/coverage/plugin_support.py index 5c577be1..23c1bc1a 100644 --- a/coverage/plugin_support.py +++ b/coverage/plugin_support.py @@ -51,7 +51,8 @@ class Plugins(object): def add_file_tracer(self, plugin): """Add a file tracer plugin. - ``plugin`` must implement the :meth:`CoveragePlugin.file_tracer` method. + `plugin` is an instance of a third-party plugin class. It must + implement the :meth:`CoveragePlugin.file_tracer` method. """ self._add_plugin(plugin, self.file_tracers) @@ -67,13 +68,8 @@ class Plugins(object): def _add_plugin(self, plugin, specialized): """Add a plugin object. - Arguments: - plugin (CoveragePlugin): the plugin to add. - - specialized (list): the list of plugins to add this to. - - Returns: - plugin: may be a different object than passed in. + `plugin` is a :class:`CoveragePlugin` instance to add. `specialized` + is a list to append the plugin to. """ plugin_name = "%s.%s" % (self.current_module, plugin.__class__.__name__) @@ -89,7 +85,6 @@ class Plugins(object): self.names[plugin_name] = plugin if specialized is not None: specialized.append(plugin) - return plugin def __nonzero__(self): return bool(self.order) |