From c40d33fec3481c496cb78dfdb7973ca71a6cb8a8 Mon Sep 17 00:00:00 2001 From: gwen Date: Wed, 27 Feb 2013 08:50:41 +0100 Subject: [PATCH] type shall not be a list --- tiramisu/value.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tiramisu/value.py b/tiramisu/value.py index 2ac7add..cd256fc 100644 --- a/tiramisu/value.py +++ b/tiramisu/value.py @@ -184,8 +184,7 @@ class Values(object): raise MultiTypeError("invalid len for the slave: {0}" " which has {1} as master".format(opt._name, self.slaves[opt]._name)) - elif opt.is_multi(): - if not isinstance(value, Multi): + if opt.is_multi() and not isinstance(value, Multi): value = Multi(value, self.context, opt, multitypes.default) self.setitem(opt, value)