#NEWLINE# def _compare( self , other , method ) : #NEWLINE# #INDENT# if ( not isinstance ( other , InstallationCandidate ) ) : #NEWLINE# #INDENT# return NotImplemented #NEWLINE# #UNINDENT# return method ( self . _key , other . _key )