diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-05-12 21:12:09 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-05-12 21:12:09 -0400 |
commit | e8531ee7c5766b7468b6f19ae5837c63f5f18a15 (patch) | |
tree | 83c37966f3f5bba9926c9c73cfc8e2390188a45d /coverage/__init__.py | |
parent | bb41f3729ac1953776f32f40b1bb63a579873883 (diff) | |
download | python-coveragepy-e8531ee7c5766b7468b6f19ae5837c63f5f18a15.tar.gz |
Give the singleton module interface a way to keep the old behavior of auto-loading and -saving data as needed.
Diffstat (limited to 'coverage/__init__.py')
-rw-r--r-- | coverage/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/__init__.py b/coverage/__init__.py index c787b34..bce4040 100644 --- a/coverage/__init__.py +++ b/coverage/__init__.py @@ -33,7 +33,7 @@ def _singleton_method(name): """Singleton wrapper around a coverage method.""" global _the_coverage if not _the_coverage: - _the_coverage = coverage() + _the_coverage = coverage(auto_data=True) return getattr(_the_coverage, name)(*args, **kwargs) return wrapper |