[Python-projects] pylint bug using enable-msg

Toshio Kuratomi a.badger at gmail.com
Fri Feb 1 18:15:13 CET 2008


Hi all, I think I've found a bug in pylint's re-enabling of a msg 
behavior.  The problem seems to be very whitespace sensitive.  The 
following short snippet fails to re-enable the msg and generate the 
expected E1101 message.  I'll also attach it as a patch against::
   pylint-0.14.0/test/input/func_block_disable_msg.py

     def meth9(self):
         """test re-enabling right after a block with whitespace"""
         eris = 5

         if eris:
             print ("In block")

         # pylint: disable-msg=E1101
         # no error
         print self.bla
         print self.blu
         # pylint: enable-msg=E1101
         # error
         print self.blip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pylint-reenable-bug-example.patch
Type: text/x-patch
Size: 797 bytes
Desc: not available
Url : http://lists.logilab.org/pipermail/python-projects/attachments/20080201/2717571f/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.logilab.org/pipermail/python-projects/attachments/20080201/2717571f/attachment.pgp 


More information about the Python-Projects mailing list