1
0
forked from VimPlug/jedi

Add get_names_of_scope option to evaluate.get_names_of_scope

Previously failing test passes now.
This commit is contained in:
Takafumi Arakaki
2013-02-23 23:44:26 +01:00
parent 3fbe7e9ff4
commit 87714460a2
2 changed files with 5 additions and 2 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)
scope, star_search=False, include_builtin=False, include_parent=False)
names = reduce(lambda x, y: x + y[1], tuples, [])
return list(map(Definition, sorted(names, key=lambda s: s.start_pos)))