probably finished the load_module method migration

This commit is contained in:
Dave Halter committed 2014-01-05 01:37:54 +01:00
1 parent 29e661ea74
commit 4d7349411e
6 files changed
+55 -34

No files matched your search

+1 -1
View File
@@ -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'))