[Python-projects] pylint command line preprocessing bug

Sylvain Thénault sylvain.thenault at logilab.fr
Tue Jan 30 09:16:58 CET 2007


On Monday 29 January à 14:22, Daniel Drake wrote:
> Hi,
> 
> I found a bug when you specify --rcfile=X --load-plugins=Y (or in the
> opposite order). The 2nd argument never gets parsed.
> 
> This is a bug in preprocess_options() in lint.py. This function
> enumerates the list of arguments in order, and deletes from the argument
> list during enumeration. Deleting on-the-fly like this causes problems
> with the enumeration and also causes the indices to shift.
> 
> Here's a simple fix for this issue, which doesn't mess with args until
> enumeration is complete.

thanks again Daniel, I'll check in the patch in the repository today.
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