diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-11 11:13:52 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-11 11:13:52 -0400 |
commit | 07d978ab2220b2ee5b6c4e116783d8a313cbf46b (patch) | |
tree | c638d7aac9d7311f08a600d9060ce8d577848628 /coverage/control.py | |
parent | 2bcf5405341c9c1f03e4dccb65522b99d1f46ae3 (diff) | |
download | python-coveragepy-07d978ab2220b2ee5b6c4e116783d8a313cbf46b.tar.gz |
The use_cache method is no longer supported.
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/coverage/control.py b/coverage/control.py index 91365e1..7fc1170 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -601,13 +601,10 @@ class Coverage(object): sys.stderr.write("Coverage.py warning: %s\n" % msg) 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. - - """ + """Obsolete method.""" self._init() - self.data.usefile(usecache) + if not usecache: + self._warn("use_cache(False) is no longer supported.") def load(self): """Load previously-collected coverage data from the data file.""" |