#NEWLINE# def Equals( self , x ) : #NEWLINE# #INDENT# if ( x is self ) : #NEWLINE# #INDENT# return 1 #NEWLINE# #UNINDENT# if ( self . has_jid_ != x . has_jid_ ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# if ( self . has_jid_ and ( x . jid_ != x . jid_ ) ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# if ( self . has_from_jid_ != x . has_from_jid_ ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# if ( self . has_from_jid_ and ( self . from_jid_ != x . from_jid_ ) ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# return 1