]> mj.ucw.cz Git - moe.git/commitdiff
Fixed ConfigVar.variables in case of no operations
authorTomas Gavenciak <gavento@ucw.cz>
Wed, 22 Sep 2010 21:25:14 +0000 (23:25 +0200)
committerTomas Gavenciak <gavento@ucw.cz>
Wed, 22 Sep 2010 21:25:14 +0000 (23:25 +0200)
t/moe/config.py

index d0d4e93bcd2ad196e0464698dab3f5e5747a93af..b2f788ef81e1bfea9de21b02aba8268f287fdad3 100644 (file)
@@ -268,6 +268,8 @@ class ConfigVar(ConfigElem):
 
   def variables(self):
     "Return a set of variables used in the expressions"
+    if not self.operations:
+      return set([])
     return set.union(*[ op.expression.variables() for op in self.operations ])
 
   def fix(self):