From 4b15a845057539b2abaa25a616af7b83191fc826 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 10 Dec 2011 20:47:06 +0100 Subject: [PATCH] fhdl: fix += for empty fragment --- migen/fhdl/structure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migen/fhdl/structure.py b/migen/fhdl/structure.py index d00de9edb..2580cf0a2 100644 --- a/migen/fhdl/structure.py +++ b/migen/fhdl/structure.py @@ -194,7 +194,7 @@ class Instance: return id(self) class Fragment: - def __init__(self, comb=StatementList(), sync=StatementList(), instances=[], pads=set()): + def __init__(self, comb=[], sync=[], instances=[], pads=set()): self.comb = _sl(comb) self.sync = _sl(sync) self.instances = instances