#NEWLINE# @ classmethod #NEWLINE# def repr( cls , messages ) : #NEWLINE# #INDENT# if isinstance ( messages , io . BytesIO ) : #NEWLINE# #INDENT# offset = messages . tell ( ) #NEWLINE# decoded = cls . decode ( messages ) #NEWLINE# messages . seek ( offset ) #NEWLINE# messages = decoded #NEWLINE# #UNINDENT# return ( ( '[' + ', ' . join ( [ cls . ITEM . repr ( m ) for m in messages ] ) ) + ']' )