diff --git a/jedi/api.py b/jedi/api.py index f3c0dd48..6716a586 100644 --- a/jedi/api.py +++ b/jedi/api.py @@ -168,6 +168,7 @@ class Script(object): return sorted(comps, key=lambda x: (x.word.startswith('__'), + x.word.startswith('_'), x.word.lower())) def _prepare_goto(self, goto_path, is_like_search=False):