diff options
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/modules/console/complete_namespace.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/console/complete_namespace.py b/release/scripts/modules/console/complete_namespace.py index 74406d5e002..992bb72aa08 100644 --- a/release/scripts/modules/console/complete_namespace.py +++ b/release/scripts/modules/console/complete_namespace.py @@ -186,7 +186,7 @@ def complete(word, namespace, private=True): except Exception: return [] # ignore basic types - if type(obj) in (bool, float, int, str): + if type(obj) in {bool, float, int, str}: return [] # an extra char '[', '(' or '.' will be added if hasattr(obj, '__getitem__') and not is_struct_seq(obj): |