bananas/environment.py
def parse_bool(value):
    """
    Parse string to bool.

    :param str value: String value to parse as bool
    :return bool:
    """
    boolean = parse_str(value).capitalize()

    if boolean in ("True", "Yes", "On", "1"):
        return True
    elif boolean in ("False", "No", "Off", "0"):
        return False
    else:
        raise ValueError('Unable to parse boolean value "{}"'.format(value))
def parse_bool(value):
    boolean = parse_str(value).capitalize()

    if boolean in ("True", "Yes", "On", "1"):
        return True
    elif boolean in ("False", "No", "Off", "0"):
        return False
    else:
        raise ValueError('Unable to parse boolean value "{}"'.format(value))
def parse_bool ( value ) : boolean = parse_str ( value ) . capitalize ( ) if boolean in ( "True" , "Yes" , "On" , "1" ) : return True elif boolean in ( "False" , "No" , "Off" , "0" ) : return False else : raise ValueError ( 'Unable to parse boolean value "{}"' . format ( value ) )
Parse string to bool.

    :param str value: String value to parse as bool
    :return bool:
Parse string to bool .