Hi, I've encountered a bug with disabling of messages in pylint.  It seems
to affect if: else: clauses.



class Test(object):
    pass

t = Test()
if True:
    pass
else:
    # pylint: disable-msg=E1101
    print t.nonexistent


When pylint is run on this code, it reports an E1101 error for
t.nonexistent even though it should be turned off.  It seems like something
about the if: else: is causing this, either of the following disable the
message:

if True:
    # pylint: disable-msg=E1101
    pass
else:
    print t.nonexistent

if True:
    pass
else:
    pass
    # pylint: disable-msg=E1101
    print t.nonexistent


-Toshio

Attachment: pgpl3uCFuyND3.pgp
Description: PGP signature

_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to