From: Florent Kermarrec Date: Tue, 21 Oct 2014 16:39:19 +0000 (+0200) Subject: flow/actor/Endpoint: clean up __getattr__ X-Git-Tag: 24jan2021_ls180~2099^2~281 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=86abb253c8406927d252ac29f244dcf828a9c144;p=litex.git flow/actor/Endpoint: clean up __getattr__ --- diff --git a/migen/flow/actor.py b/migen/flow/actor.py index 00837fd3..5931ebb4 100644 --- a/migen/flow/actor.py +++ b/migen/flow/actor.py @@ -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):