flow/actor/Endpoint: clean up __getattr__

This commit is contained in:
Florent Kermarrec 2014-10-21 18:39:19 +02:00 committed by Sebastien Bourdeauducq
parent 37031e3a2f
commit 86abb253c8
1 changed files with 1 additions and 4 deletions

View File

@ -35,11 +35,8 @@ class _Endpoint(Record):
]
Record.__init__(self, endpoint_layout)
def __del__(self):
pass
def __getattr__(self, name):
return getattr(self.payload, name)
return getattr(object.__getattribute__(self, "payload"), name)
class Source(_Endpoint):
def connect(self, sink):