[mod] 'str' is a python builtin

This commit is contained in:
Laurent Peuch 2019-04-28 03:51:44 +02:00
parent 6cceddf70c
commit 340f3617a2

View file

@ -30,7 +30,7 @@ with open(ACTIONSMAP_FILE, 'r') as stream:
# Getting the dictionary containning what actions are possible per domain # Getting the dictionary containning what actions are possible per domain
OPTION_TREE = yaml.safe_load(stream) OPTION_TREE = yaml.safe_load(stream)
DOMAINS = [str for str in OPTION_TREE.keys() if not str.startswith('_')] DOMAINS = [x for x in OPTION_TREE.keys() if not x.startswith('_')]
DOMAINS_STR = '"{}"'.format(' '.join(DOMAINS)) DOMAINS_STR = '"{}"'.format(' '.join(DOMAINS))
ACTIONS_DICT = {} ACTIONS_DICT = {}
for domain in DOMAINS: for domain in DOMAINS: