From a782b6e6e09038fbbd3037ac4b33b27c28519f05 Mon Sep 17 00:00:00 2001 From: Goffi Date: Sun, 26 May 2019 22:22:00 +0200 Subject: [PATCH] core (constants): "on" can now be used as True value in bool method. --- sat/core/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sat/core/constants.py b/sat/core/constants.py index fd804dbe..1ac765f4 100644 --- a/sat/core/constants.py +++ b/sat/core/constants.py @@ -438,7 +438,7 @@ class Const(object): def bool(cls, value): """@return (bool): bool value for associated constant""" assert isinstance(value, basestring) - return value.lower() in (cls.BOOL_TRUE, "1", "yes") + return value.lower() in (cls.BOOL_TRUE, "1", "yes", "on") @classmethod def boolConst(cls, value):