Merge pull request #555 from imZack/master

Fix 'set' object does not support indexing
This commit is contained in:
Adam Tauber 2016-05-06 20:12:12 +02:00
commit 9247b1e777

View File

@ -181,7 +181,7 @@ class EnginesSetting(SwitchableSetting):
return [item[len('engine_'):].replace('_', ' ').replace(' ', '__') for item in items]
def transform_values(self, values):
if len(values) == 1 and values[0] == '':
if len(values) == 1 and next(iter(values)) == '':
return list()
transformed_values = []
for value in values: