diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2006-11-23 14:25:52 +0100 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2006-11-23 14:25:52 +0100 |
commit | cb2ee5b6091b9c33d937770fddbbce49ffe5d974 (patch) | |
tree | f3cbd80d041dd87da21419037d8695dd13d504f0 /reporters | |
parent | 1cad98f77109a0a76eec1baea09c4a20b120b1e1 (diff) | |
download | pylint-git-cb2ee5b6091b9c33d937770fddbbce49ffe5d974.tar.gz |
#3119 and #3117
Diffstat (limited to 'reporters')
-rw-r--r-- | reporters/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/reporters/__init__.py b/reporters/__init__.py index 54d14bd19..b0e1bd548 100644 --- a/reporters/__init__.py +++ b/reporters/__init__.py @@ -16,8 +16,6 @@ http://www.logilab.fr/ -- mailto:contact@logilab.fr """ -__revision__ = "$Id: __init__.py,v 1.14 2005-01-20 15:12:56 syt Exp $" - import sys CMPS = ['=', '-', '+'] @@ -39,15 +37,17 @@ class BaseReporter: extension = '' - def __init__(self, output=sys.stdout): + def __init__(self, output=None): self.linter = None self.include_ids = None self.section = 0 self.out = None self.set_output(output) - def set_output(self, output): + def set_output(self, output=None): """set output stream""" + if output is None: + output = sys.stdout self.out = output def writeln(self, string=''): |