On 19 avril 13:40, Michael Hanselmann wrote:
> Hello

Hi,
 
> With the following demonstration code, pylint 0.20 warns about an
> “Unused import distutils” for “import distutils.command.build”. We're
> also seeing this in real code, see [1]. Is this a bug?
> 
> ------------------------------------------------
> #!/usr/bin/python2.4
> from distutils import version
> from distutils import command
> import distutils.command.build
> print version.Version, command.build.show_compilers

nop: "import distutils.command.build" add distutils to the module namespace,
which is actually not used.

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