#NEWLINE# def _cmp( self , other ) : #NEWLINE# #INDENT# b1 = cStringIO . StringIO ( ) #NEWLINE# self . to_wire ( b1 ) #NEWLINE# b2 = cStringIO . StringIO ( ) #NEWLINE# other . to_wire ( b2 ) #NEWLINE# return cmp ( b1 . getvalue ( ) , b2 . getvalue ( ) )