summaryrefslogtreecommitdiff
path: root/coverage/html.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-03-08 06:20:27 -0500
committerNed Batchelder <ned@nedbatchelder.com>2014-03-08 06:20:27 -0500
commit52faddb2586f40e0df03f1ffa8fe73e7d11f5e92 (patch)
treea97f33999d255d74c3f71c957e11b47c637afec7 /coverage/html.py
parent5b20f798e5c21b3bd278719c9bdde04b3b6b2ec2 (diff)
downloadpython-coveragepy-52faddb2586f40e0df03f1ffa8fe73e7d11f5e92.tar.gz
Hacked-in Mako support.
Diffstat (limited to 'coverage/html.py')
-rw-r--r--coverage/html.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/html.py b/coverage/html.py
index d168e35..d890436 100644
--- a/coverage/html.py
+++ b/coverage/html.py
@@ -167,7 +167,7 @@ class HtmlReporter(Reporter):
# If need be, determine the encoding of the source file. We use it
# later to properly write the HTML.
if sys.version_info < (3, 0):
- encoding = source_encoding(source)
+ encoding = cu.source_encoding(source)
# Some UTF8 files have the dreaded UTF8 BOM. If so, junk it.
if encoding.startswith("utf-8") and source[:3] == "\xef\xbb\xbf":
source = source[3:]
@@ -187,7 +187,7 @@ class HtmlReporter(Reporter):
lines = []
- for lineno, line in enumerate(source_token_lines(source), start=1):
+ for lineno, line in enumerate(cu.source_token_lines(source), start=1):
# Figure out how to mark this line.
line_class = []
annotate_html = ""