summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-02-25 16:05:14 -0500
committerNed Batchelder <ned@nedbatchelder.com>2023-02-25 16:05:14 -0500
commitf217d0dbf14567ba5ecdc0108cb29b0c4164b1a4 (patch)
tree9c06d3f166dffbeb4b4b936de7dbe408a5b31022
parent857833e9e901e667f2f3ae419282f8e1a1dd0b6c (diff)
downloadpython-coveragepy-git-f217d0dbf14567ba5ecdc0108cb29b0c4164b1a4.tar.gz
refactor: remove unneeded pydoc weirdness
-rw-r--r--coverage/__init__.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/coverage/__init__.py b/coverage/__init__.py
index 429a7bd0..efd0a6f0 100644
--- a/coverage/__init__.py
+++ b/coverage/__init__.py
@@ -1,10 +1,11 @@
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
-"""Code coverage measurement for Python.
+"""
+Code coverage measurement for Python.
Ned Batchelder
-https://nedbatchelder.com/code/coverage
+https://coverage.readthedocs.io
"""
@@ -25,12 +26,3 @@ coverage = Coverage
# the encodings.utf_8 module is loaded and then unloaded, I don't know why.
# Adding a reference here prevents it from being unloaded. Yuk.
import encodings.utf_8 # pylint: disable=wrong-import-position, wrong-import-order
-
-# Because of the "from coverage.control import fooey" lines at the top of the
-# file, there's an entry for coverage.coverage in sys.modules, mapped to None.
-# This makes some inspection tools (like pydoc) unable to find the class
-# coverage.coverage. So remove that entry.
-try:
- del sys.modules['coverage.coverage']
-except KeyError:
- pass