On 14 février 11:32, [email protected] wrote:
> 
> At work we have some pyexpat link issues (our Python build is linked against
> a newer version of expat than some other internal libraries), so to force
> dynamic linking of the correct version I add
> 
>     import pyexpat
> 
> to the top of a script which (indirectly) uses expat.  This results in a
> predictable warning:
> 
>     [W] Unused import pyexpat
> 
> So I suppressed it with this:
> 
>     #pylint: disable-msg=W0611
> 
> Now it complains about the disable action:
> 
>     [I] Locally disabling W0611
> 
> How is that any better than emitting the original warning?  I'm trying to
> suppress useless noise.  How do I suppress the info message without
> generating another one?

You should be able to disable the whole 'Information' message category
with --disable=I

-- 
Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org

_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to