summaryrefslogtreecommitdiff
path: root/coverage/html.py
diff options
context:
space:
mode:
authorBen Finney <ben@benfinney.id.au>2011-07-27 13:07:10 +1000
committerBen Finney <ben@benfinney.id.au>2011-07-27 13:07:10 +1000
commitca7a10dff148fdb68f577f09e1f572f8350491b3 (patch)
treeab6108b4fdc1469e23dbbca1052926336fa90abc /coverage/html.py
parent56c2f5d6377e16fd8a214e702a3e19847c4f7428 (diff)
downloadpython-coveragepy-ca7a10dff148fdb68f577f09e1f572f8350491b3.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 fffd9b4..2b8cedc 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),