summaryrefslogtreecommitdiff
path: root/coverage/__init__.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-11-11 12:22:03 -0500
committerNed Batchelder <ned@nedbatchelder.com>2012-11-11 12:22:03 -0500
commitde89438a0346e3dca4f7e8afe24efa38810deebe (patch)
tree82acb47b22bf967a9573651adb6cc18d9bc216a2 /coverage/__init__.py
parent99480be7da89cb82cfff01e5d10a2514546faf39 (diff)
downloadpython-coveragepy-git-de89438a0346e3dca4f7e8afe24efa38810deebe.tar.gz
Windows now reports file names in their correct case. #89 and #203.
Diffstat (limited to 'coverage/__init__.py')
-rw-r--r--coverage/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/coverage/__init__.py b/coverage/__init__.py
index a10b4a67..2653853b 100644
--- a/coverage/__init__.py
+++ b/coverage/__init__.py
@@ -78,6 +78,12 @@ analysis2 = _singleton_method('analysis2')
report = _singleton_method('report')
annotate = _singleton_method('annotate')
+
+# On Windows, we encode and decode deep enough that something goes wrong and
+# 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
+
# 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
@@ -88,6 +94,7 @@ try:
except KeyError:
pass
+
# COPYRIGHT AND LICENSE
#
# Copyright 2001 Gareth Rees. All rights reserved.