diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2012-05-03 12:46:50 +0200 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2012-05-03 12:46:50 +0200 |
commit | 5fbe1a037319451a5e99ef48aad479ed11aafe99 (patch) | |
tree | 0afe570e9e314550b63d6961baa3301178a2c013 /utils.py | |
parent | 3531d91b029c1a2ca509666cdade2a8119645da6 (diff) | |
download | pylint-git-5fbe1a037319451a5e99ef48aad479ed11aafe99.tar.gz |
Refactoring reporting.
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1,5 +1,5 @@ # Copyright (c) 2003-2010 Sylvain Thenault (thenault@gmail.com). -# Copyright (c) 2003-2010 LOGILAB S.A. (Paris, FRANCE). +# Copyright (c) 2003-2012 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This program is free software; you can redistribute it and/or modify it under @@ -394,9 +394,6 @@ class ReportsHandlerMixIn: def make_reports(self, stats, old_stats): """render registered reports""" - if self.config.files_output: - filename = 'pylint_global.' + self.reporter.extension - self.reporter.set_output(open(filename, 'w')) sect = Section('Report', '%s statements analysed.'% (self.stats['statement'])) for checker in self._reports: @@ -410,7 +407,7 @@ class ReportsHandlerMixIn: continue report_sect.report_id = reportid sect.append(report_sect) - self.reporter.display_results(sect) + return sect def add_stats(self, **kwargs): """add some stats entries to the statistic dictionary |