1
0
forked from VimPlug/jedi

Fix: api.defined_names was run against wrong scope

when there is only one class is defined in the module.
This commit is contained in:
Takafumi Arakaki
2013-05-19 05:07:23 +02:00
parent e011683ea4
commit 6acf34efd3

View File

@@ -563,7 +563,7 @@ def defined_names(source, source_path=None, source_encoding='utf-8'):
modules.source_to_unicode(source, source_encoding),
module_path=source_path,
)
return api_classes._defined_names(parser.scope)
return api_classes._defined_names(parser.module)
def preload_module(*modules):