#NEWLINE# def _tobuffer( self , object_ ) : #NEWLINE# #INDENT# if ( not isinstance ( object_ , six . string_types ) ) : #NEWLINE# #INDENT# raise TypeError ( ( 'object is not a string: %r' % ( object_ , ) ) ) #NEWLINE# #UNINDENT# return numpy . string_ ( self )