Permalink
Browse files

migen/bank: do not create interface in default param

  • Loading branch information...
1 parent c3fdf42 commit 62187aa23d5e2ee3d81185b799f5ed5037d66d03 @sbourdeauducq sbourdeauducq committed Dec 6, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 migen/bank/csrgen.py
View
@@ -3,9 +3,11 @@
from migen.bank.description import *
class Bank:
- def __init__(self, description, address=0, bus=csr.Interface()):
+ def __init__(self, description, address=0, bus=None):
self.description = description
self.address = address
+ if bus is None:
+ bus = csr.Interface()
self.bus = bus
def get_fragment(self):

0 comments on commit 62187aa

Please sign in to comment.