#NEWLINE# def Equals( self , x ) : #NEWLINE# #INDENT# if ( x is self ) : #NEWLINE# #INDENT# return 1 #NEWLINE# #UNINDENT# if ( self . has_image_ != x . has_image_ ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# if ( self . has_image_ and ( self . image_ != x . image_ ) ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# if ( self . has_source_metadata_ != x . has_source_metadata_ ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# if ( self . has_source_metadata_ and ( self . source_metadata_ != x . source_metadata_ ) ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# return 1