Skip to content

Commit f217d0d

Browse files
committed
refactor: remove unneeded pydoc weirdness
1 parent 857833e commit f217d0d

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

coverage/__init__.py

+3-11
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
22
# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
33

4-
"""Code coverage measurement for Python.
4+
"""
5+
Code coverage measurement for Python.
56
67
Ned Batchelder
7-
https://nedbatchelder.com/code/coverage
8+
https://coverage.readthedocs.io
89
910
"""
1011

@@ -25,12 +26,3 @@
2526
# the encodings.utf_8 module is loaded and then unloaded, I don't know why.
2627
# Adding a reference here prevents it from being unloaded. Yuk.
2728
import encodings.utf_8 # pylint: disable=wrong-import-position, wrong-import-order
28-
29-
# Because of the "from coverage.control import fooey" lines at the top of the
30-
# file, there's an entry for coverage.coverage in sys.modules, mapped to None.
31-
# This makes some inspection tools (like pydoc) unable to find the class
32-
# coverage.coverage. So remove that entry.
33-
try:
34-
del sys.modules['coverage.coverage']
35-
except KeyError:
36-
pass

0 commit comments

Comments
 (0)