Do not use super()
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Tue, 18 Dec 2012 13:55:58 +0000 (14:55 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Tue, 18 Dec 2012 13:55:58 +0000 (14:55 +0100)
milkymist/asmicon/bankmachine.py
milkymist/framebuffer/__init__.py

index 8b17408111ad88c2d6244463c0e5d713b45c20a5..de472919ae06d3ea22d3effcf0f3f563eb52655f 100644 (file)
@@ -79,7 +79,7 @@ class _SimpleSelector(_Selector):
                                (slot.state == SLOT_PENDING)
                        ))
        
-               return Fragment(comb) + super().get_fragment()
+               return Fragment(comb) + _Selector.get_fragment(self)
 
 class _FullSelector(_Selector):
        def get_fragment(self):
@@ -149,7 +149,7 @@ class _FullSelector(_Selector):
                        select_stmt = If(has_mature, *best_mature).Else(select_stmt)
                comb.append(select_stmt)
                
-               return Fragment(comb, sync) + super().get_fragment()
+               return Fragment(comb, sync) + _Selector.get_fragment(self)
 
 class _Buffer:
        def __init__(self, source):
index d5373b26127c7ec7d10203df80d48f98e711870e..d0dea5fa6442732d5e4d9f02c731b3159c3f9c2f 100644 (file)
@@ -44,11 +44,11 @@ class _FrameInitiator(spi.SingleGenerator):
                        ("base", asmi_bits, 0, alignment_bits),
                        ("length", length_bits, 640*480*4, alignment_bits)
                ]
-               super().__init__(layout, spi.MODE_CONTINUOUS)
+               spi.SingleGenerator.__init__(self, layout, spi.MODE_CONTINUOUS)
 
 class VTG(Actor):
        def __init__(self):
-               super().__init__(
+               Actor.__init__(self,
                        ("timing", Sink, [
                                ("hres", _hbits),
                                ("hsync_start", _hbits),
@@ -115,7 +115,7 @@ class VTG(Actor):
 
 class FIFO(Actor):
        def __init__(self):
-               super().__init__(("dac", Sink, _dac_layout))
+               Actor.__init__(self, ("dac", Sink, _dac_layout))
                
                self.vga_hsync_n = Signal()
                self.vga_vsync_n = Signal()