diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-20 06:50:12 -0500 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-20 06:50:12 -0500 |
| commit | 5dc96eaae9966d08dafccdc676d4ad8fdc6484d4 (patch) | |
| tree | 68507b12a5f319374039c55ea5d30b5e4a71f2ed /coverage/html.py | |
| parent | 18b7a2a764c829d50fcf1aee65e962fd64c344a7 (diff) | |
| download | python-coveragepy-git-5dc96eaae9966d08dafccdc676d4ad8fdc6484d4.tar.gz | |
Polish up the sortable report: indication of sort column and sortability
Diffstat (limited to 'coverage/html.py')
| -rw-r--r-- | coverage/html.py | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/coverage/html.py b/coverage/html.py index 5e480011..3877c834 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -48,18 +48,13 @@ class HtmlReporter(Reporter): self.index_file() # Create the once-per-directory files. - shutil.copyfile( - data_filename("htmlfiles/style.css"), - os.path.join(directory, "style.css") - ) - shutil.copyfile( - data_filename("htmlfiles/jquery-1.3.2.min.js"), - os.path.join(directory, "jquery-1.3.2.min.js") - ) - shutil.copyfile( - data_filename("htmlfiles/jquery.tablesorter.min.js"), - os.path.join(directory, "jquery.tablesorter.min.js") - ) + for static in [ + "style.css", "jquery-1.3.2.min.js", "jquery.tablesorter.min.js" + ]: + shutil.copyfile( + data_filename("htmlfiles/" + static), + os.path.join(directory, static) + ) def html_file(self, cu, analysis): """Generate an HTML file for one source file.""" |
