X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=unfold%2Fcomposite.py;h=16e28f30071ada65fa8afe92c606ebf319f3342c;hb=31540dd504798e0aca69e10d8144fbedc5b16af8;hp=9007cdc625d1d8e471c0fb94809f872de4f40bf4;hpb=544e6ac78d490061f848f98adb0e08574b474371;p=myslice.git diff --git a/unfold/composite.py b/unfold/composite.py index 9007cdc6..16e28f30 100644 --- a/unfold/composite.py +++ b/unfold/composite.py @@ -8,9 +8,9 @@ from unfold.plugin import Plugin class Composite (Plugin): - def __init__ (self, sons=[], active_domid=None, *args, **kwds): + def __init__ (self, sons=None, active_domid=None, *args, **kwds): Plugin.__init__ (self, *args, **kwds) - self.sons=sons + self.sons= sons if sons else [] self.active_domid=active_domid # make sure this is valid, unset otherwise, so we always have exactly one active self.check_active_domid()