1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-20 20:09:11 +00:00

toggle_set: Fixed code from when these were lists not sets

This commit is contained in:
Sebastian Goscik 2016-08-12 11:24:48 +01:00
parent df17f79142
commit ca13c58f7c

View File

@ -368,14 +368,14 @@ class toggle_set(set):
#Enable previously disabled item
if not item.startswith('~') and ('~' + item) in dest:
dest.remove('~' + item)
dest.append(item)
dest.add(item)
return dest
def values(self):
"""
returns a list of enabled items.
"""
return [item for item in self if not item.startswith('~')]
return set([item for item in self if not item.startswith('~')])
def conflicts_with(self, other):
"""