summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.com>2018-03-01 09:52:02 +0000
committerJames Ennis <james.ennis@codethink.com>2018-03-14 17:31:06 +0000
commitccec158ab92d7fefdac96599a0c059b8bf8ef741 (patch)
treefefb36fa37ec9c6d1b7c99b421ca6b7c009db49c
parent3df8fb9f582bb79934e6c264c06cde008aea2906 (diff)
downloadbuildstream-ccec158ab92d7fefdac96599a0c059b8bf8ef741.tar.gz
pylint - dealt with simplifiable-if-statement warning
-rw-r--r--.pylintrc2
-rw-r--r--buildstream/_yaml.py2
2 files changed, 1 insertions, 3 deletions
diff --git a/.pylintrc b/.pylintrc
index 1270504e3..69888d251 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -116,8 +116,6 @@ disable=#####################################
cyclic-import,
- simplifiable-if-statement,
-
bad-whitespace
# Enable the message, report, category or checker with the given id(s). You can
diff --git a/buildstream/_yaml.py b/buildstream/_yaml.py
index a597962ff..2f8a2921d 100644
--- a/buildstream/_yaml.py
+++ b/buildstream/_yaml.py
@@ -445,7 +445,7 @@ def is_composite_list(node):
has_keys = False
for key, _ in node_items(node):
- if key in ['(>)', '(<)', '(=)']:
+ if key in ['(>)', '(<)', '(=)']: # pylint: disable=simplifiable-if-statement
has_directives = True
else:
has_keys = True