1
0
forked from VimPlug/jedi
This commit is contained in:
David Halter
2012-09-15 16:02:39 +02:00
parent 7e62c47f22
commit 9e7e5293d8
3 changed files with 39 additions and 33 deletions

View File

@@ -1183,7 +1183,7 @@ def get_scopes_for_name(scope, name_str, position=None, search_global=False):
scope_generator = scope.scope_generator()
else:
if isinstance(scope, Class):
# classes are only available directly via chaining?
# classes are only available directly via chaining?
# strange stuff...
names = scope.get_defined_names()
else:
@@ -1192,6 +1192,7 @@ def get_scopes_for_name(scope, name_str, position=None, search_global=False):
return descriptor_check(remove_statements(filter_name(scope_generator)))
def check_getattr(inst, name_str):
result = []
# str is important to lose the NamePart!