Email Re: [Python-projects] Problem with pylint option

from
to
Sylvain Thenault <syt at logilab dot fr>
subject
Re: [Python-projects] Problem with pylint option
date
2005/04/15 11:01
On Friday 15 April à 10:39, Sylvain Thénault wrote:
> On Friday 15 April à 02:37, logilab.abcx@spamgourmet.com wrote:
> > Hello.

> Hello

> > I have this option in my pylint.cfg file:
> > disable-msg=W0131,W0142
> > 
> > Pylint 0.6.4 (Common 0.9.3) which I've just installed fails if this
> > option is active.

> damned ! How may I have I missed this one... 

> > It raises an exception in pylint.py at line 286 at this code:
> > else:
> >     meth(_id)
> > since _id is not defined.
> > 
> > A quick and dirty fix:
> > 
> > if opt_name in ("disable-msg", "disable-report"): ###
> >     value = value.split(",")                      ###
> > if isinstance(value, list) :
> >     for _id in value :
> >         meth(_id)
> > else :
> >     #meth(_id)
> >     value = ()

> should be :
>       meth(value)

hum, not enough actually, see the attached patch
-- 
Sylvain Thénault                               LOGILAB, Paris (France).

http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org


attachment