pylint #3203 disabling W0702 (no exception's type specified) works in a strange way [open]

Marteen Ter Huurne reported :

If I run PyLint on this:

try:
        pass
except: # pylint: disable-msg=W0702
        print 'failed to do nothing'

The W0702 warning is issued even though I attempted to disable it.

If I run PyLint on this:

try:
        pass
except:
        # pylint: disable-msg=W0702
        print 'failed to do nothing'

The W0702 warning is still issued.

But if I run PyLint on this:

try:
        pass
except:
        print 'failed to do nothing' # pylint: disable-msg=W0702

The W0702 warning is suppressed.

I would expect the first form to be the one that works, not the third.

Syt: this is much probably due to the "except" statement line number is not correctly found.

prioritynormal
typebug
done in<not specified>
load0.000
load left0.000
closed by<not specified>