fhdl/module: use r.append() in _collect_submodules
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 9 Mar 2015 18:45:02 +0000 (19:45 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 9 Mar 2015 18:45:02 +0000 (19:45 +0100)
migen/fhdl/module.py

index 4d91693d09cef6e5e59041fee2ac66993d091b23..bb29fc6f004e02234c5a852542641c864bc1166c 100644 (file)
@@ -145,7 +145,7 @@ class Module:
                r = []
                for name, submodule in self._submodules:
                        if not submodule._get_fragment_called:
-                               r += [(name, submodule.get_fragment())]
+                               r.append((name, submodule.get_fragment()))
                return r
 
        def finalize(self, *args, **kwargs):