From 498f7c997393752fd626af2c4353d5c9d7a85806 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 26 Jul 2015 06:21:14 -0400 Subject: Decided I don't like the napoleon output style. --- coverage/data.py | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'coverage/data.py') diff --git a/coverage/data.py b/coverage/data.py index 3f2c371..345fb97 100644 --- a/coverage/data.py +++ b/coverage/data.py @@ -184,13 +184,9 @@ class CoverageData(object): def file_tracer(self, filename): """Get the plugin name of the file tracer for a file. - Arguments: - filename: the name of the file you're interested in. - - Returns: - str: the name of the plugin that handles this file. If the file - was measured, but didn't use a plugin, then "" is returned. - If the file was not measured, then None is returned. + Returns the name of the plugin that handles this file. If the file was + measured, but didn't use a plugin, then "" is returned. If the file + was not measured, then None is returned. """ # Because the vast majority of files involve no plugin, we don't store @@ -215,8 +211,7 @@ class CoverageData(object): lines. If `fullpath` is true, then the keys are the full pathnames of the files, otherwise they are the basenames of the files. - Returns: - dict mapping filenames to counts of lines. + Returns a dict mapping filenames to counts of lines. """ summ = {} @@ -499,10 +494,9 @@ class CoverageData(object): def add_to_hash(self, filename, hasher): """Contribute `filename`'s data to the `hasher`. - Arguments: - filename (str): the filename we're interested in. - hasher (:class:`coverage.misc.Hasher`): the Hasher to update with - the file's data. + `hasher` is a :class:`coverage.misc.Hasher` instance to be updated with + the file's data. It should only get the results data, not the run + data. """ if self._arcs: -- cgit v1.2.1