#NEWLINE# def __lt__( self , other ) : #NEWLINE# #INDENT# if ( self . _version != other . _version ) : #NEWLINE# #INDENT# raise TypeError ( ( '%s and %s are not of the same version' % ( str ( self ) , str ( other ) ) ) ) #NEWLINE# #UNINDENT# if ( not isinstance ( other , _BaseNet ) ) : #NEWLINE# #INDENT# raise TypeError ( ( '%s and %s are not of the same type' % ( str ( self ) , str ( other ) ) ) ) #NEWLINE# #UNINDENT# if ( self . network != other . network ) : #NEWLINE# #INDENT# return ( self . network < other . network ) #NEWLINE# #UNINDENT# if ( self . netmask != other . netmask ) : #NEWLINE# #INDENT# return ( self . netmask < other . netmask ) #NEWLINE# #UNINDENT# return False