mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-27 21:12:18 +08:00
probably finished the load_module method migration
This commit is contained in:
@@ -83,7 +83,7 @@ def get_directory_modules_for_name(mods, name):
|
||||
with open(path) as f:
|
||||
source = modules.source_to_unicode(f.read())
|
||||
if name in source:
|
||||
return modules.Module(path, source).parser.module
|
||||
return modules.load_module(path, source)
|
||||
|
||||
# skip non python modules
|
||||
mods = set(m for m in mods if m.path is None or m.path.endswith('.py'))
|
||||
|
||||
Reference in New Issue
Block a user