[Python-projects] pylint 0.13.2 bug

Dave Borowitz dborowitz at google.com
Wed Aug 8 00:51:08 CEST 2007


Hello again,

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.)

Thanks again,
David Borowitz
Google Engineering Intern
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.logilab.org/pipermail/python-projects/attachments/20070807/d1840dba/attachment.htm 


More information about the Python-Projects mailing list