summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-07-11 11:13:52 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-07-11 11:13:52 -0400
commit47e60e72dff0ce88a9c495d8380751759e05a4ae (patch)
tree91f0e02160c2da42bdf7cab12d695c4edd17825f /coverage/control.py
parentc34cce353390abaff35e54393002f336300dcde4 (diff)
downloadpython-coveragepy-git-47e60e72dff0ce88a9c495d8380751759e05a4ae.tar.gz
The use_cache method is no longer supported.
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/coverage/control.py b/coverage/control.py
index 91365e11..7fc11700 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."""