[Python-projects] [pylint] sys.stdout as default in reporters constructors
Sylvain Thénault
sylvain.thenault at logilab.fr
Wed Nov 15 19:40:18 CET 2006
On Thursday 26 October à 12:24, Ilya Sokolov wrote:
> it is hard to override sys.stdout for reporters.
>
> this is from pylint/reporters/text.py:49:
>
> def __init__(self, output=sys.stdout):
> BaseReporter.__init__(self, output)
> self._modules = {}
>
> i think it is better to change it in this way:
>
> def __init__(self, output=None):
> if output is None:
> output=sys.stdout
> BaseReporter.__init__(self, output)
> self._modules = {}
added to the tracker. BTW the tracker is now readable (not yet publicly
writeable though): http://www.logilab.org/project/name/pylint
--
Sylvain Thénault LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Python et calcul scientifique: http://www.logilab.fr/science
More information about the Python-Projects
mailing list