[Python-projects] pylint 0.13.2 bug

Sylvain Thénault sylvain.thenault at logilab.fr
Thu Aug 9 09:05:38 CEST 2007


On Tuesday 07 August à 18:51, Dave Borowitz wrote:
> Hello again,

Hey,

> I found a small bug in pylint.reporters.text.ColorizedTextReporter. When
> --include-ids=y is passed, then _get_decoration is called with the full msg_id
> (e.g. E0123), which is not a key in COLOR_MAPPING, so the text is not properly
> colorized. Changing line 127 from:
>             return self.color_mapping[msg_id]
> to:
>             return self.color_mapping[msg_id[0]]
> should do the trick. (You may also want something like 'if not msg_id: return
> None, None' before that.)

I've fixed this in the repository. One more thanks :)
cheers
-- 
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