def BoolCheck(value):
 bool_val = truthy(value, default=None)
 if (bool_val is None):
  raise ValueError((_('Invalid boolean: %s') % value))
 return bool_val

def BoolCheck ( value ) : bool_val = truthy ( value , default = None ) if ( bool_val is None ) : raise ValueError ( ( _ ( 'Invalid boolean: %s' ) % value ) ) return bool_val
convert common yes/no strings into boolean values .