summaryrefslogtreecommitdiff
path: root/coverage/html.py
diff options
context:
space:
mode:
authorBen Finney <ben@benfinney.id.au>2011-07-27 13:08:39 +1000
committerBen Finney <ben@benfinney.id.au>2011-07-27 13:08:39 +1000
commitcf4b5cc77d83ad5339f06f982b4f71819cf74d71 (patch)
treeaa8fcaa3cfa1559af075df384ed232482d64d19f /coverage/html.py
parent91692c31f757fe78e9a7376033f66772fc97f36b (diff)
parent9160ea404951cec00fe148defbcb92bc7c2956cf (diff)
downloadpython-coveragepy-git-cf4b5cc77d83ad5339f06f982b4f71819cf74d71.tar.gz
Refactor handling of static report files to a separate function.
Diffstat (limited to 'coverage/html.py')
-rw-r--r--coverage/html.py5
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),