From edef0760ea56d93250d0ab06da4166cb8efaafde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kom=D1=8Fpa?= Date: Mon, 8 Nov 2010 00:12:48 +0200 Subject: [PATCH] Fixed fake computation bug --- src/mapcss/Eval.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mapcss/Eval.py b/src/mapcss/Eval.py index a405245..c4f12a2 100644 --- a/src/mapcss/Eval.py +++ b/src/mapcss/Eval.py @@ -42,8 +42,9 @@ class Eval(): """ for t in x: q = x - return " " + return 0 tags = set([]) + #print self.expr_text a = eval(self.expr,{},{ "tag":lambda x: max([tags.add(x), " "]), @@ -51,7 +52,7 @@ class Eval(): "num": lambda x: 0, "metric": fake_compute, "zmetric": fake_compute, - "str": fake_compute, + "str": lambda x: "", "any": fake_compute, "min": fake_compute, "max": fake_compute,