from
Sylvain Thénault <sylvain.thenault at logilab dot fr>
subject
Re: [Python-projects] Problem with pylint option
date
On Friday 15 April à 02:37, logilab.abcx@spamgourmet.com wrote:2005/04/15 10:39
> 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)
--
Sylvain Thénault LOGILAB, Paris (France).
http://www.logilab.com http://www.logilab.fr http://www.logilab.org
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

