pylint #28739 Directive within else block is ignored [open]
PyLint ignores a disable-msg directive within an else block. See http://pastebin.com/7S4sBGX0 for a case. | |
priority | normal |
---|---|
type | bug |
done in | <not specified> |
load | 1.000 |
load left | 0.300 |
closed by | <not specified> |
Comments
-
2011/12/15 11:27, written by jcristau
-
2011/12/15 11:31, written by jcristau
add commentfor the record, the test case on pastebin is:
def find_exe(executable):
"""Find exe."""
try:
import win32api, pywintypes
except ImportError:
pass
else:
# pylint: disable-msg=E1101
try:
return win32api.FindExecutable(executable)[1]
except pywintypes.error:
pass
raise Exception(executable)
seems to be the same issue as http://www.logilab.org/ticket/18954