From 9160ea404951cec00fe148defbcb92bc7c2956cf Mon Sep 17 00:00:00 2001 From: Ben Finney Date: Wed, 27 Jul 2011 13:07:10 +1000 Subject: Refactor handling of static report files to a separate function. --- coverage/html.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'coverage/html.py') 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), -- cgit v1.2.1