pylint #123285 Pragmas for warnings applying to lines should be interpreted as is [validation pending]
As is, no warning will be raised for the first line in the following program:
__revision__ = '1'
print 'This is a very long line which the linter will warn about, now that line-too-long has been enabled again.'
This is because pragmas are extended to the beginning of the block if they occur before the first line containing actual code statements. This should not happen for warnings applying to physical source code lines rather than AST nodes.
|appeared in||<not specified>|
|closed by||#2748816ac5de Make sure that pragmas that apply to whole lines are interpreted literally, so that|
|patch||Make sure that pragmas that apply to whole lines are interpreted literally, so that [applied]|