[Python-projects] pylint command line preprocessing bug

Daniel Drake ddrake at brontes3d.com
Mon Jan 29 20:22:46 CET 2007


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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: arg-mangling-fix.patch
Type: text/x-patch
Size: 1257 bytes
Desc: not available
Url : http://lists.logilab.org/pipermail/python-projects/attachments/20070129/771a0dcb/attachment.bin 


More information about the Python-Projects mailing list