From 86f37261a2e20575668aa931462200239703a207 Mon Sep 17 00:00:00 2001 From: David Halter Date: Sat, 29 Dec 2012 20:07:45 +0100 Subject: [PATCH] the bool variable of #97 was defined wrong, fixes #97 --- jedi/api.py | 2 +- jedi/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jedi/api.py b/jedi/api.py index 4734e2f4..126a1620 100644 --- a/jedi/api.py +++ b/jedi/api.py @@ -157,7 +157,7 @@ class Script(object): new = api_classes.Completion(c, needs_dot, len(like), s) k = (new.word, new.complete) # key - if k in comp_dct and not settings.no_completion_duplicates: + if k in comp_dct and settings.no_completion_duplicates: comp_dct[k].same_name_completions.append(new) else: comp_dct[k] = new diff --git a/jedi/settings.py b/jedi/settings.py index d9ffa24b..b976d866 100644 --- a/jedi/settings.py +++ b/jedi/settings.py @@ -16,7 +16,7 @@ add_bracket_after_function = False # If set, completions with the same name don't appear in the output anymore, # but are in the `same_name_completions` attribute. -no_completion_duplicates = False +no_completion_duplicates = True # ---------------- # parser