#NEWLINE# def encode( self ) : #NEWLINE# #INDENT# pieces = list ( ) #NEWLINE# assert isinstance ( self . consumer_tag , str_or_bytes ) , 'A non-string value was supplied for self.consumer_tag' #NEWLINE# data . encode_short_string ( pieces , pieces . consumer_tag ) #NEWLINE# return pieces