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:
parent
df17f79142
commit
ca13c58f7c
@ -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):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user