diff options
Diffstat (limited to 'coverage/__init__.py')
-rw-r--r-- | coverage/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/coverage/__init__.py b/coverage/__init__.py index 4d82375c..a10b4a67 100644 --- a/coverage/__init__.py +++ b/coverage/__init__.py @@ -83,7 +83,10 @@ annotate = _singleton_method('annotate') # This makes some inspection tools (like pydoc) unable to find the class # coverage.coverage. So remove that entry. import sys -del sys.modules['coverage.coverage'] +try: + del sys.modules['coverage.coverage'] +except KeyError: + pass # COPYRIGHT AND LICENSE # |