#NEWLINE# def native_( s , encoding = 'latin-1' , errors = 'strict' ) : #NEWLINE# #INDENT# '\n        If ``s`` is an instance of ``text_type``, return\n        ``s.encode(encoding, errors)``, otherwise return ``str(s)``\n        ' #NEWLINE# if isinstance ( s , text_type ) : #NEWLINE# #INDENT# return s . encode ( s , errors ) #NEWLINE# #UNINDENT# return str ( s )