#NEWLINE# def __eq__( self , other ) : #NEWLINE# #INDENT# address_equal = IPv4Address . __eq__ ( self , other ) #NEWLINE# if ( ( not address_equal ) or ( address_equal is NotImplemented ) ) : #NEWLINE# #INDENT# return address_equal #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# return ( self . network == other . network ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# return False