summaryrefslogtreecommitdiff
path: root/src/buildstream/_options/optionflags.py
diff options
context:
space:
mode:
authorBenjamin Schubert <contact@benschubert.me>2020-05-11 21:16:23 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2020-05-12 12:40:06 +0000
commitc99aa67af99485bcbe6df02dc9e314a849cdb1fc (patch)
treec7010062bc0d7c1461ec2de4dee537e8ec274c45 /src/buildstream/_options/optionflags.py
parente5ed02da0b99c16481eac58963f4ebbdf0481590 (diff)
downloadbuildstream-c99aa67af99485bcbe6df02dc9e314a849cdb1fc.tar.gz
option.py: Remove 'transform' flag. It is not needed anymore
Now that we handle variable transformation more globally, we don't need the transform value anymore
Diffstat (limited to 'src/buildstream/_options/optionflags.py')
-rw-r--r--src/buildstream/_options/optionflags.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/buildstream/_options/optionflags.py b/src/buildstream/_options/optionflags.py
index b19a22738..042ef644c 100644
--- a/src/buildstream/_options/optionflags.py
+++ b/src/buildstream/_options/optionflags.py
@@ -60,13 +60,9 @@ class OptionFlags(Option):
self.value = value_node.as_str_list()
self.validate(self.value, value_node)
- def load_value(self, node, *, transform=None):
+ def load_value(self, node):
value_node = node.get_sequence(self.name)
- if transform:
- self.value = [transform(x) for x in value_node]
- else:
- self.value = value_node.as_str_list()
- self.value = sorted(self.value)
+ self.value = sorted(value_node.as_str_list())
self.validate(self.value, value_node)
def set_value(self, value):