#NEWLINE# def _munge_to_bytestring( self , other , method ) : #NEWLINE# #INDENT# if ( type ( other ) is bytes ) : #NEWLINE# #INDENT# return other #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( self , str ) : #NEWLINE# #INDENT# return other . encode ( 'ascii' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . _munge_to_sequence ( other , method ) . _string