def text_(s, encoding='latin-1', errors='strict'):
 if isinstance(s, binary_type):
  return s.decode(encoding, errors)
 return s

def text_ ( s , encoding = 'latin-1' , errors = 'strict' ) : if isinstance ( s , binary_type ) : return s . decode ( encoding , errors ) return s
if s is an instance of binary_type .