1
0
forked from VimPlug/jedi

fixed a problem with positions of modules/imports

This commit is contained in:
David Halter
2012-10-14 14:07:31 +02:00
parent 80ec5e0e9d
commit 7fda97767e
2 changed files with 4 additions and 1 deletions

View File

@@ -1193,7 +1193,7 @@ def get_scopes_for_name(scope, name_str, position=None, search_global=False,
if isinstance(scope, Instance):
scope_generator = scope.scope_generator()
else:
if isinstance(scope, Class):
if isinstance(scope, (Class, parsing.Module)):
# classes are only available directly via chaining?
# strange stuff...
names = scope.get_defined_names()