summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-08-19 13:29:24 -0400
committerNed Batchelder <ned@nedbatchelder.com>2014-08-19 13:29:24 -0400
commit0e3d0775462159fd46493e25bcb07936766e7ae5 (patch)
treedc8b0ae018c2085ea721d933ae11d213e887b011 /doc
parent2a84eaf05129d335064ffbb75346b5b106a5cfb0 (diff)
downloadpython-coveragepy-git-0e3d0775462159fd46493e25bcb07936766e7ae5.tar.gz
Also update the docs for the Coverage name.
Diffstat (limited to 'doc')
-rw-r--r--doc/api.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/api.rst b/doc/api.rst
index a43de17f..0a00947e 100644
--- a/doc/api.rst
+++ b/doc/api.rst
@@ -9,16 +9,17 @@ Coverage API
:history: 20100221T151500, docs for 3.3 (on the plane back from PyCon)
:history: 20100725T211700, updated for 3.4.
:history: 20121111T235800, added a bit of clarification.
+:history: 20140819T132600, change class name to Coverage
The API to coverage.py is very simple, contained in a single module called
-`coverage`. Most of the interface is in a single class, also called
-`coverage`. Methods on the coverage object correspond roughly to operations
+`coverage`. Most of the interface is in a single class, called
+`Coverage`. Methods on the Coverage object correspond roughly to operations
available in the command line interface. For example, a simple use would be::
import coverage
- cov = coverage.coverage()
+ cov = coverage.Coverage()
cov.start()
# .. call your code ..
@@ -34,7 +35,7 @@ The coverage module
.. module:: coverage
-.. autoclass:: coverage
+.. autoclass:: Coverage
:members: