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 | e128c5d16c8ef7f83884e911a5e65d0d2ac1f191 (patch) | |
tree | 4654d98e5836c9977e47dafbf8490616d26ec76f /coverage/html.py | |
parent | 0b2ddfa6fcb0a66a5d089462befee0d2597d2dee (diff) | |
download | python-coveragepy-e128c5d16c8ef7f83884e911a5e65d0d2ac1f191.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 5e48001..3877c83 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.""" |