I am using pylint 0.27 with python 2.7.3. Pylint has a known bug which hits when it analyses code having a .next()
call. As given in http://www.logilab.org/122793 link, it fails with the given traceback.
I cannot change my python and pylint versions but I would like to workaround this problem by disabling pylint on the piece of code that has .next()
call by adding a #pylint: MAGIC
comment in my code.
I could find support for disabling pylint checking on a file using #pylint: skip-file
but I am interested at doing this at function level or rather at line level.
Any other workarounds are also welcomed!