#NEWLINE# def __str__( self ) : #NEWLINE# #INDENT# def hexify( x ) : #NEWLINE# #INDENT# return ( hex ( x ) if isinstance ( x , six . integer_types ) else x ) #NEWLINE# #UNINDENT# buf = ( 'version=%s,msg_type=%s,msg_len=%s,xid=%s,' % ( hexify ( self . version ) , hexify ( self . msg_type ) , hexify ( self . msg_len ) , hexify ( self . xid ) ) ) #NEWLINE# return ( buf + StringifyMixin . __str__ ( self ) )