flow/network: fix ActorNode default params

This commit is contained in:
Sebastien Bourdeauducq 2012-06-16 22:39:31 +02:00
parent 1a576e5c83
commit b0b0380ea7
1 changed files with 1 additions and 1 deletions

View File

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