1
0
forked from VimPlug/jedi

Revert "Add get_names_of_scope option to evaluate.get_names_of_scope"

This reverts commit 154662ea273a17f00186546bdf9d75833553d307.
This commit is contained in:
Takafumi Arakaki
2013-03-10 19:26:49 +01:00
parent d4bf14dd66
commit 06de4d66e7
2 changed files with 2 additions and 5 deletions

View File

@@ -376,7 +376,7 @@ def get_definitions(scope):
:rtype: list of Definition
"""
tuples = evaluate.get_names_of_scope(
scope, star_search=False, include_builtin=False, include_parent=False)
scope, star_search=False, include_builtin=False)
names = reduce(lambda x, y: x + y[1], tuples, [])
return [Definition(d) for d in sorted(names, key=lambda s: s.start_pos)]