diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-27 12:17:28 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-27 12:20:34 +0300 |
commit | ebe7a407d738aba1b7ea508576ec1530db4f1447 (patch) | |
tree | fe0e576dd7ad9bf25f883965ed5f384f82d8b740 /release/scripts/modules | |
parent | 90751d1835ade00e94cac47142974068ca24b23e (diff) |
Cleanup: use static set instead of list
Diffstat (limited to 'release/scripts/modules')
-rw-r--r-- | release/scripts/modules/console/complete_import.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/console/complete_import.py b/release/scripts/modules/console/complete_import.py index ff3099d7285..6f51f6b691b 100644 --- a/release/scripts/modules/console/complete_import.py +++ b/release/scripts/modules/console/complete_import.py @@ -178,7 +178,7 @@ def complete(line): words = line.split(' ') if len(words) == 3 and words[0] == 'from': return ['import '] - if len(words) < 3 and (words[0] in ['import', 'from']): + if len(words) < 3 and (words[0] in {'import', 'from'}): if len(words) == 1: return get_root_modules() mod = words[1].split('.') |