def close_enough(sa, sb):
 sa = CLOSE_ENOUGH_FIX_RE.sub('', six.text_type(sa)).lower()
 sb = CLOSE_ENOUGH_FIX_RE.sub('', six.text_type(sb)).lower()
 return (sa == sb)

def close_enough ( sa , sb ) : sa = CLOSE_ENOUGH_FIX_RE . sub ( '' , six . text_type ( sa ) ) . lower ( ) sb = CLOSE_ENOUGH_FIX_RE . sub ( '' , six . text_type ( sb ) ) . lower ( ) return ( sa == sb )
compare two strings and return true if theyre the same notwithstanding any whitespace or case .