virtualEnvironment/lib/python2.7/site-packages/coverage/html.py
def index_file(self):
        """Write the index.html file for this report."""
        index_tmpl = Templite(
            data("index.html"), self.template_globals
            )

        self.totals = sum([f['nums'] for f in self.files])

        html = index_tmpl.render({
            'arcs': self.arcs,
            'extra_css': self.extra_css,
            'files': self.files,
            'totals': self.totals,
        })

        if sys.version_info < (3, 0):
            html = html.decode("utf-8")
        self.write_html(
            os.path.join(self.directory, "index.html"),
            html
            )

        # Write the latest hashes for next time.
        self.status.write(self.directory)
def index_file(self):
        index_tmpl = Templite(
            data("index.html"), self.template_globals
            )

        self.totals = sum([f['nums'] for f in self.files])

        html = index_tmpl.render({
            'arcs': self.arcs,
            'extra_css': self.extra_css,
            'files': self.files,
            'totals': self.totals,
        })

        if sys.version_info < (3, 0):
            html = html.decode("utf-8")
        self.write_html(
            os.path.join(self.directory, "index.html"),
            html
            )

        # Write the latest hashes for next time.
        self.status.write(self.directory)
def index_file ( self ) : index_tmpl = Templite ( data ( "index.html" ) , self . template_globals ) self . totals = sum ( [ f [ 'nums' ] for f in self . files ] ) html = index_tmpl . render ( { 'arcs' : self . arcs , 'extra_css' : self . extra_css , 'files' : self . files , 'totals' : self . totals , } ) if sys . version_info < ( 3 , 0 ) : html = html . decode ( "utf-8" ) self . write_html ( os . path . join ( self . directory , "index.html" ) , html ) # Write the latest hashes for next time. self . status . write ( self . directory )
Write the index.html file for this report.
Write the index . html file for this report .