[Python-projects] Patch for pylint: allow consecutive __future__ statements

Sylvain Thénault sylvain.thenault at logilab.fr
Fri Jul 20 16:09:50 CEST 2007


On Sunday 15 July à 19:07, Stefan Rank wrote:
> Hi,

Hi Stefan,

> Python allows more than one __future__ statement,
> pylint only allows one.
> So this::
>
>   # py2.5 euphoria header: due to a bug in py2.5, with has its own line
>   from __future__ import with_statement
>   from __future__ import absolute_import, division
>
> results in a W0410 for the second statement.

True... I've applied your patch, thanks a lot.
cheers,

-- 
Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian:  http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
Python et calcul scientifique:           http://www.logilab.fr/science



More information about the Python-Projects mailing list