diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2014-05-18 21:26:57 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-05-18 21:26:57 -0400 |
commit | a189b3bb1846d8e0c7b003a94af69822d3890f9e (patch) | |
tree | 497511cde2ab9cbaf42198ba66afa2c1e45ae927 /coverage/html.py | |
parent | 32782e38316c8bb3cf9d6f8b5c62081177399ffe (diff) | |
download | python-coveragepy-git-a189b3bb1846d8e0c7b003a94af69822d3890f9e.tar.gz |
Continued refactoring of CodeUnit
Diffstat (limited to 'coverage/html.py')
-rw-r--r-- | coverage/html.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/coverage/html.py b/coverage/html.py index 15afca8e..159ae581 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -148,9 +148,7 @@ class HtmlReporter(Reporter): def html_file(self, cu, analysis): """Generate an HTML file for one source file.""" - source_file = cu.source_file() - with source_file: - source = source_file.read() + source = cu.source() # Find out if the file on disk is already correct. flat_rootname = cu.flat_rootname() |