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