Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Do not use super()

  • Loading branch information...
commit 51f4f920a24d2adb2db2d442fc01ae8325be5c5b 1 parent c44ff89
Sébastien Bourdeauducq authored December 18, 2012
4  milkymist/asmicon/bankmachine.py
@@ -79,7 +79,7 @@ def get_fragment(self):
79 79
 				(slot.state == SLOT_PENDING)
80 80
 			))
81 81
 	
82  
-		return Fragment(comb) + super().get_fragment()
  82
+		return Fragment(comb) + _Selector.get_fragment(self)
83 83
 
84 84
 class _FullSelector(_Selector):
85 85
 	def get_fragment(self):
@@ -149,7 +149,7 @@ def get_fragment(self):
149 149
 			select_stmt = If(has_mature, *best_mature).Else(select_stmt)
150 150
 		comb.append(select_stmt)
151 151
 		
152  
-		return Fragment(comb, sync) + super().get_fragment()
  152
+		return Fragment(comb, sync) + _Selector.get_fragment(self)
153 153
 
154 154
 class _Buffer:
155 155
 	def __init__(self, source):
6  milkymist/framebuffer/__init__.py
@@ -44,11 +44,11 @@ def __init__(self, asmi_bits, length_bits, alignment_bits):
44 44
 			("base", asmi_bits, 0, alignment_bits),
45 45
 			("length", length_bits, 640*480*4, alignment_bits)
46 46
 		]
47  
-		super().__init__(layout, spi.MODE_CONTINUOUS)
  47
+		spi.SingleGenerator.__init__(self, layout, spi.MODE_CONTINUOUS)
48 48
 
49 49
 class VTG(Actor):
50 50
 	def __init__(self):
51  
-		super().__init__(
  51
+		Actor.__init__(self,
52 52
 			("timing", Sink, [
53 53
 				("hres", _hbits),
54 54
 				("hsync_start", _hbits),
@@ -115,7 +115,7 @@ def get_fragment(self):
115 115
 
116 116
 class FIFO(Actor):
117 117
 	def __init__(self):
118  
-		super().__init__(("dac", Sink, _dac_layout))
  118
+		Actor.__init__(self, ("dac", Sink, _dac_layout))
119 119
 		
120 120
 		self.vga_hsync_n = Signal()
121 121
 		self.vga_vsync_n = Signal()

0 notes on commit 51f4f92

Please sign in to comment.
Something went wrong with that request. Please try again.