From 5dc96eaae9966d08dafccdc676d4ad8fdc6484d4 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 20 Nov 2009 06:50:12 -0500 Subject: Polish up the sortable report: indication of sort column and sortability --- coverage/html.py | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'coverage/html.py') 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.""" -- cgit v1.2.1