summaryrefslogtreecommitdiff
path: root/pylint/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/utils.py')
-rw-r--r--pylint/utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pylint/utils.py b/pylint/utils.py
index 9cf4405..74903de 100644
--- a/pylint/utils.py
+++ b/pylint/utils.py
@@ -568,8 +568,7 @@ class FileState(object):
for msgid, lines in six.iteritems(msg_state):
for lineno, state in list(lines.items()):
original_lineno = lineno
- # pylint: disable=superfluous-parens
- if not (first <= lineno <= last):
+ if first > lineno or last < lineno:
continue
# Set state for all lines for this block, if the
# warning is applied to nodes.