summaryrefslogtreecommitdiff
path: root/coverage/annotate.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-05-18 21:26:57 -0400
committerNed Batchelder <ned@nedbatchelder.com>2014-05-18 21:26:57 -0400
commita189b3bb1846d8e0c7b003a94af69822d3890f9e (patch)
tree497511cde2ab9cbaf42198ba66afa2c1e45ae927 /coverage/annotate.py
parent32782e38316c8bb3cf9d6f8b5c62081177399ffe (diff)
downloadpython-coveragepy-git-a189b3bb1846d8e0c7b003a94af69822d3890f9e.tar.gz
Continued refactoring of CodeUnit
Diffstat (limited to 'coverage/annotate.py')
-rw-r--r--coverage/annotate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/annotate.py b/coverage/annotate.py
index dae9f4cf..5b96448a 100644
--- a/coverage/annotate.py
+++ b/coverage/annotate.py
@@ -61,7 +61,7 @@ class AnnotateReporter(Reporter):
i = 0
j = 0
covered = True
- source = cu.source_file().read()
+ source = cu.source()
for lineno, line in enumerate(source.splitlines(True), start=1):
while i < len(statements) and statements[i] < lineno:
i += 1