mibuild/generic_platform: fix default value for connectors
authorSebastien Bourdeauducq <sb@m-labs.hk>
Mon, 17 Feb 2014 16:40:15 +0000 (17:40 +0100)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Mon, 17 Feb 2014 16:40:15 +0000 (17:40 +0100)
mibuild/generic_platform.py

index e6bb3c35b18242089be0b126983eb0718ddbbbfe..d51ab63a4739f7ecbd581683b9349768671d3866 100644 (file)
@@ -169,7 +169,7 @@ class ConstraintManager:
                return self.platform_commands
 
 class GenericPlatform:
-       def __init__(self, device, io, default_crg_factory=None, connectors=None, name=None):
+       def __init__(self, device, io, default_crg_factory=None, connectors=[], name=None):
                self.device = device
                self.constraint_manager = ConstraintManager(io, connectors)
                self.default_crg_factory = default_crg_factory