flow/actor/Endpoint: clean up __getattr__
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 21 Oct 2014 16:39:19 +0000 (18:39 +0200)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Wed, 22 Oct 2014 01:35:30 +0000 (09:35 +0800)
migen/flow/actor.py

index 00837fd336bd6eb1b5eaf949ac03fe5164be693f..5931ebb4662b0a175b89d5dc315fa39bbb6bbc55 100644 (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):