Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Opens a stream for the file at filename and writes the
header/data/footer using the provided formatter.

:param filename: Filename of the report.
:param data: Data to write into the report.
:param formatter_factory: Callable that takes the filestream at
  filename and returns an IReportFormatter.

        def write_report(filename, data, formatter_factory):
    """Opens a stream for the file at filename and writes the
    header/data/footer using the provided formatter.

    :param filename: Filename of the report.
    :param data: Data to write into the report.
    :param formatter_factory: Callable that takes the filestream at
      filename and returns an IReportFormatter.
    """
    with open(filename, 'w') as f:
        fmt = formatter_factory(f)
        fmt.format_report_header()
        fmt.format_data(data)
        fmt.format_report_footer()
        


src/p/y/pynocle-0.3.2/pynocle/__init__.py   pynocle(Download)
                f, leading_path=self.rootdir)
        p = self.cyclcompl_filename
        utils.write_report(p, (ccdata, failures), makeFormatter)
        self._filesforjump[p] = p, 'Report: Cyclomatic Complexity'
 
            return sloc.SlocGoogleChartFormatter(f, self.rootdir)
        p = self.sloc_filename
        utils.write_report(p, slocgrp, makeSlocFmt)
        self._filesforjump[p] = p, 'Report: SLOC'
 
            return depgraph.CouplingGoogleChartFormatter(f, self.rootdir)
        p = self.coupling_filename
        utils.write_report(p, depgrp, factory)
        self._filesforjump[p] = p, 'Report: Coupling'
 
            return depgraph.RankGoogleChartFormatter(f, self.rootdir)
        p = self.couplingrank_filename
        utils.write_report(p, depgrp, factory)
        self._filesforjump[p] = p, 'Report: Coupling PageRank'