def to_native_str(text, encoding=None, errors='strict'):
 if six.PY2:
  return to_bytes(text, encoding, errors)
 else:
  return to_unicode(text, encoding, errors)

def to_native_str ( text , encoding = None , errors = 'strict' ) : if six . PY2 : return to_bytes ( text , encoding , errors ) else : return to_unicode ( text , encoding , errors )
return str representation of text .