summaryrefslogtreecommitdiff
path: root/coverage/__init__.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2010-06-18 20:45:20 -0400
committerNed Batchelder <ned@nedbatchelder.com>2010-06-18 20:45:20 -0400
commit2d939aec11b6d75b336c3e39cd53e221b40d854b (patch)
tree88b304c312728bc405eaa89c6b6dc16749806b55 /coverage/__init__.py
parent60173665a4c9711455887e4879d75b062399f549 (diff)
downloadpython-coveragepy-git-2d939aec11b6d75b336c3e39cd53e221b40d854b.tar.gz
Isolate old-style singleton api tests.
Diffstat (limited to 'coverage/__init__.py')
-rw-r--r--coverage/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/coverage/__init__.py b/coverage/__init__.py
index 777d451b..a81f61ac 100644
--- a/coverage/__init__.py
+++ b/coverage/__init__.py
@@ -17,8 +17,10 @@ from coverage.misc import CoverageException
# Module-level functions. The original API to this module was based on
# functions defined directly in the module, with a singleton of the coverage()
-# class. That design hampered programmability. Here we define the top-level
-# functions to create the singleton when they are first called.
+# class. That design hampered programmability, so the current api uses
+# explicitly-created coverage objects. But for backward compatibility, here we
+# define the top-level functions to create the singleton when they are first
+# called.
# Singleton object for use with module-level functions. The singleton is
# created as needed when one of the module-level functions is called.