diff options
Diffstat (limited to 'coverage/html.py')
-rw-r--r-- | coverage/html.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/coverage/html.py b/coverage/html.py index d4fb7516..49eea963 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -257,13 +257,18 @@ class HtmlReporter(Reporter): }) # Write the HTML page for this file. - template_values = { - 'c_exc': c_exc, 'c_mis': c_mis, 'c_par': c_par, 'c_run': c_run, - 'has_arcs': self.has_arcs, 'extra_css': self.extra_css, - 'fr': fr, 'nums': nums, 'lines': lines, + html = self.source_tmpl.render({ + 'c_exc': c_exc, + 'c_mis': c_mis, + 'c_par': c_par, + 'c_run': c_run, + 'has_arcs': self.has_arcs, + 'extra_css': self.extra_css, + 'fr': fr, + 'nums': nums, + 'lines': lines, 'time_stamp': self.time_stamp, - } - html = self.source_tmpl.render(template_values) + }) html_filename = rootname + ".html" html_path = os.path.join(self.directory, html_filename) |