summaryrefslogtreecommitdiff
path: root/coverage/html.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2010-11-07 09:05:21 -0500
committerNed Batchelder <ned@nedbatchelder.com>2010-11-07 09:05:21 -0500
commitf3b0b5f206d84d6247aaa48861f1f119f367aee6 (patch)
treec9f1a779f912cebf5b7086a4666fa82edf9b15db /coverage/html.py
parent226aa60227cc4e9e39d71dd1bbbcfe77c83f0280 (diff)
downloadpython-coveragepy-f3b0b5f206d84d6247aaa48861f1f119f367aee6.tar.gz
Upgrade jquery to 1.4.3
Diffstat (limited to 'coverage/html.py')
-rw-r--r--coverage/html.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/coverage/html.py b/coverage/html.py
index dac4ff9..29842cf 100644
--- a/coverage/html.py
+++ b/coverage/html.py
@@ -24,6 +24,14 @@ def data(fname):
class HtmlReporter(Reporter):
"""HTML reporting."""
+ # These files will be copied from the htmlfiles dir to the output dir.
+ STATIC_FILES = [
+ "style.css",
+ "jquery-1.4.3.min.js",
+ "jquery.tablesorter.min.js",
+ "coverage_html.js",
+ ]
+
def __init__(self, coverage, ignore_errors=False):
super(HtmlReporter, self).__init__(coverage, ignore_errors)
self.directory = None
@@ -51,10 +59,7 @@ class HtmlReporter(Reporter):
self.index_file()
# Create the once-per-directory files.
- for static in [
- "style.css", "coverage_html.js",
- "jquery-1.3.2.min.js", "jquery.tablesorter.min.js"
- ]:
+ for static in self.STATIC_FILES:
shutil.copyfile(
data_filename("htmlfiles/" + static),
os.path.join(self.directory, static)