flow/network: fix ActorNode default params
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 16 Jun 2012 20:39:31 +0000 (22:39 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 16 Jun 2012 20:39:31 +0000 (22:39 +0200)
migen/flow/network.py

index 6bf21a004edb81259939f9bb955e2a887263c1b3..25d55d1b0589e5d699ea25cf85926ecb787ad57a 100644 (file)
@@ -12,7 +12,7 @@ from migen.corelogic.misc import optree
 #      This form is needed to enable actor duplication or sharing during elaboration.
 
 class ActorNode:
-       def __init__(self, actor_class, parameters=None):
+       def __init__(self, actor_class, parameters=dict()):
                if isinstance(actor_class, type):
                        self.actor_class = actor_class
                        self.parameters = parameters