diff options
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.""" |