#NEWLINE# def __cmp__( self , other ) : #NEWLINE# #INDENT# 'overrode for easy comparison of AppVersion to AppVersion and Version\n           to AppVersion.\n\n           @raise IncomparableVersions:  when the package names of the versions\n               differ.\n           @param other L{twisted.python.versions.Version}, \n               L{IDroneModelAppVersion}, or object\n           @return C{int} of value -1, 0, or 1\n        ' #NEWLINE# try : #NEWLINE# #INDENT# if IDroneModelAppVersion . providedBy ( other ) : #NEWLINE# #INDENT# return self . version . __cmp__ ( other . version ) #NEWLINE# #UNINDENT# #UNINDENT# except IncomparableVersions : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# if isinstance ( other , Version ) : #NEWLINE# #INDENT# return self . version . __cmp__ ( other ) #NEWLINE# #UNINDENT# return object . __cmp__ ( other , other )