diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-26 06:21:14 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-26 06:21:14 -0400 |
commit | 498f7c997393752fd626af2c4353d5c9d7a85806 (patch) | |
tree | a0a0e42fd883e8482122cabe16ca65bf08f5f1e8 /coverage/data.py | |
parent | 42a4c529695c50cb56c7bab72a80a6eb02fab124 (diff) | |
download | python-coveragepy-498f7c997393752fd626af2c4353d5c9d7a85806.tar.gz |
Decided I don't like the napoleon output style.
Diffstat (limited to 'coverage/data.py')
-rw-r--r-- | coverage/data.py | 20 |
1 files changed, 7 insertions, 13 deletions
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: |