This commit is contained in:
Miroslav Stampar 2011-04-21 14:20:09 +00:00
parent a313df4d37
commit 930872cf3b

View File

@ -482,7 +482,7 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse
if isinstance(value, basestring): if isinstance(value, basestring):
value = value.strip().lower() value = value.strip().lower()
if value in ("true", "false"): if value in ("true", "false"):
value = bool(value) value = value == "true"
elif value in ("1", "-1"): elif value in ("1", "-1"):
value = True value = True
elif value == "0": elif value == "0":