def config_true_value(value):
 return ((value is True) or (isinstance(value, six.string_types) and (value.lower() in TRUE_VALUES)))

def config_true_value ( value ) : return ( ( value is True ) or ( isinstance ( value , six . string_types ) and ( value . lower ( ) in TRUE_VALUES ) ) )
returns true if the value is either true or a string in true_values .