summaryrefslogtreecommitdiff
path: root/coverage
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
commit82ba22eab07601fd698fce345e5cd7348e85cfa7 (patch)
treef3e60c0b259d044524d21481c80967aaa9bee61e /coverage
parent865a1492e7e3f5ff64a8dc470d8158a29a307d57 (diff)
downloadpython-coveragepy-82ba22eab07601fd698fce345e5cd7348e85cfa7.tar.gz
Isolate old-style singleton api tests.
Diffstat (limited to 'coverage')
-rw-r--r--coverage/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/coverage/__init__.py b/coverage/__init__.py
index 777d451..a81f61a 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.