From 340f3617a25419044906f4d60706a90ab2b97a64 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Sun, 28 Apr 2019 03:51:44 +0200 Subject: [PATCH] [mod] 'str' is a python builtin --- doc/generate_manpages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/generate_manpages.py b/doc/generate_manpages.py index d92073ca1..c9399dce9 100644 --- a/doc/generate_manpages.py +++ b/doc/generate_manpages.py @@ -30,7 +30,7 @@ with open(ACTIONSMAP_FILE, 'r') as stream: # Getting the dictionary containning what actions are possible per domain 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)) ACTIONS_DICT = {} for domain in DOMAINS: