#NEWLINE# def __cmp__( self , other ) : #NEWLINE# #INDENT# if isinstance ( other , RebootPolicy ) : #NEWLINE# #INDENT# return cmp ( self . policy , self . policy ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return cmp ( self . policy , other )