#NEWLINE# def _check_int_address( self , address ) : #NEWLINE# #INDENT# if ( address < 0 ) : #NEWLINE# #INDENT# msg = '%d (< 0) is not permitted as an IPv%d address' #NEWLINE# raise AddressValueError ( ( msg % ( address , self . _version ) ) ) #NEWLINE# #UNINDENT# if ( address > self . _ALL_ONES ) : #NEWLINE# #INDENT# msg = '%d (>= 2**%d) is not permitted as an IPv%d address' #NEWLINE# raise AddressValueError ( ( msg % ( address , self . _max_prefixlen , self . _version ) ) )