core (constants): accept "yes" as a True value in bool()
This commit is contained in:
parent
5fc249a075
commit
3b737b6fec
1 changed files with 1 additions and 1 deletions
|
|
@ -376,7 +376,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")
|
||||
return value.lower() in (cls.BOOL_TRUE, "1", "yes")
|
||||
|
||||
@classmethod
|
||||
def boolConst(cls, value):
|
||||
|
|
|
|||
Loading…
Reference in a new issue