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):
value = value.strip().lower()
if value in ("true", "false"):
value = bool(value)
value = value == "true"
elif value in ("1", "-1"):
value = True
elif value == "0":