fixed the getattr/__getattr__ stuff

This commit is contained in:
Dave Halter
2014-01-10 15:14:55 +01:00
parent f868668f0e
commit 14c9ed88ca
5 changed files with 5 additions and 14 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ class NameFinder(object):
"""Checks for both __getattr__ and __getattribute__ methods"""
result = []
# str is important to lose the NamePart!
name = compiled.name_from_string(self.name_str)
name = compiled.create(str(self.name_str))
with common.ignored(KeyError):
result = inst.execute_subscope_by_name('__getattr__', [name])
if not result: