[Python-projects] PyLint: option parsing bug
Sylvain Thénault
sylvain.thenault at logilab.fr
Mon Mar 5 21:58:56 CET 2007
On Monday 05 March à 21:41, Maarten ter Huurne wrote:
>
> Hi,
Hi Maarten,
> When specifying options to PyLint in the wrong order, an IndexError will be
> raised:
> ===
> $ pylint --version
> No config file found, using default configuration
> pylint 0.13.1,
> astng 0.17.0, common 0.21.2
> Python 2.4.3 (#2, Oct 6 2006, 07:52:30)
> [GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)]
> $ pylint -rn dummy.py --rpython-mode
> Traceback (most recent call last):
> File "/usr/bin/pylint", line 4, in ?
> lint.Run(sys.argv[1:])
> File "/usr/lib/python2.4/site-packages/pylint/lint.py", line 778, in __init__
> preprocess_options(args, {'rpython-mode': self.cb_rpython_mode,
> File "/usr/lib/python2.4/site-packages/pylint/lint.py", line 758, in
> preprocess_options
> search_for[option](option, args[i + 1])
> IndexError: list index out of range
> ===
>
> If I specify the options in the right order ("pylint --rpython-mode -rn
> dummy.py") it works fine.
But you get reports displayed anyway, no ? I think this bug is already
fixed in the repository. I'll check your other reports tomorrow.
Thanks,
--
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