diff options
author | Ben Finney <ben@benfinney.id.au> | 2011-07-27 13:07:10 +1000 |
---|---|---|
committer | Ben Finney <ben@benfinney.id.au> | 2011-07-27 13:07:10 +1000 |
commit | 9160ea404951cec00fe148defbcb92bc7c2956cf (patch) | |
tree | da7160dfd9107d0d6670a71b822d2d604b6bda0b /coverage/html.py | |
parent | 4a418445c88663089bc146d69c8fd4fb3da950ed (diff) | |
download | python-coveragepy-git-9160ea404951cec00fe148defbcb92bc7c2956cf.tar.gz |
Refactor handling of static report files to a separate function.
Diffstat (limited to 'coverage/html.py')
-rw-r--r-- | coverage/html.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/coverage/html.py b/coverage/html.py index fffd9b45..2b8cedcb 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -88,7 +88,10 @@ class HtmlReporter(Reporter): # Write the index file. self.index_file() - # Create the once-per-directory files. + self.make_local_static_report_files() + + def make_local_static_report_files(self): + """ Make local instances of static files for HTML report. """ for static in self.STATIC_FILES: shutil.copyfile( data_filename("htmlfiles/" + static), |