summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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