Functions are not exceptions anymore in the name finder.

This commit is contained in:
Dave Halter
2015-01-08 14:14:01 +01:00
parent 0dc61292b9
commit 47fc3cbdfe
3 changed files with 5 additions and 10 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ class Evaluator(object):
f = finder.NameFinder(self, scope, name_str, position)
scopes = f.scopes(search_global)
if is_goto:
return f.filter_name(scopes, search_global)
return f.filter_name(scopes)
return f.find(scopes, search_global)
@memoize_default(default=[], evaluator_is_first_arg=True)