[attributs] __getattr__ ce que je pensais mettre dans le commit 838c4e9a73
This commit is contained in:
parent
37b5dc5a0c
commit
fe14eb9d4b
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ class Attr(object):
|
|||
return str(self).__hash__()
|
||||
|
||||
def __getattr__(self, name):
|
||||
return super(Attr, self).__getattribute__('value').__getattribute__(name)
|
||||
return getattr(self.value, name)
|
||||
|
||||
def __eq__(self, item):
|
||||
if isinstance(item, self.__class__):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue