# HG changeset patch # User Goffi # Date 1558902120 -7200 # Node ID bb36cf6289c644f4080d6c062e4b550ab399fffe # Parent 5e72efd2f95d13533b709551d384af3c380680af core (constants): "on" can now be used as True value in bool method. diff -r 5e72efd2f95d -r bb36cf6289c6 sat/core/constants.py --- a/sat/core/constants.py Sun May 26 22:21:56 2019 +0200 +++ b/sat/core/constants.py Sun May 26 22:22:00 2019 +0200 @@ -438,7 +438,7 @@ 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):