working related_names function

This commit is contained in:
David Halter
2012-09-10 13:49:43 +02:00
parent a96d8dbad4
commit a4a8c8f343
3 changed files with 14 additions and 5 deletions

View File

@@ -327,6 +327,9 @@ def related_names(definitions, search_name, modules):
names = []
# TODO check modules in the same directoy
for m in modules:
if not m.path.endswith('.py'):
# don't search for names in builtin modules
continue
try:
stmts = m.used_names[search_name]
except KeyError: