diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-04-16 22:46:30 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-04-16 22:46:30 -0400 |
commit | 0b38c15b0bae25ccd53d6f59aa7760d6b612e184 (patch) | |
tree | 31f76f129f43c29119e4ca419ffb72e0fb1fe550 /coverage/control.py | |
parent | 4df3f70cb7c5b97d035d82b506a9a0b9e0f81fa9 (diff) | |
download | python-coveragepy-git-0b38c15b0bae25ccd53d6f59aa7760d6b612e184.tar.gz |
Remove an unused parameter, and other small cleanups to data storage
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/coverage/control.py b/coverage/control.py index cb13f2ff..0cc4ee87 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -45,9 +45,14 @@ class coverage: # TODO: ignore by module as well as file? return self.file_locator.canonical_filename(filename) - def use_cache(self, usecache, cache_file=None): - self.data.usefile(usecache, cache_file) + def use_cache(self, usecache): + """Control the use of a data file (incorrectly called a cache). + `usecache` is true or false, whether to read and write data on disk. + + """ + self.data.usefile(usecache) + def get_ready(self): self.collector.reset() self.data.read(parallel=self.parallel_mode) @@ -91,7 +96,7 @@ class coverage: def group_collected_data(self): """Group the collected data by filename and reset the collector.""" - self.data.add_raw_data(self.collector.data_points()) + self.data.add_line_data(self.collector.data_points()) self.collector.reset() # Backward compatibility with version 1. |