#NEWLINE# def __init__( self , address ) : #NEWLINE# #INDENT# "\n        Args:\n            address: A string or integer representing the IP\n              '192.168.1.1'\n\n              Additionally, an integer can be passed, so\n              IPv4Address('192.168.1.1') == IPv4Address(3232235777).\n              or, more generally\n              IPv4Address(int(IPv4Address('192.168.1.1'))) ==\n                IPv4Address('192.168.1.1')\n\n        Raises:\n            AddressValueError: If ipaddr isn't a valid IPv4 address.\n\n        " #NEWLINE# _BaseIP . __init__ ( self , address ) #NEWLINE# _BaseV4 . __init__ ( self , address ) #NEWLINE# if isinstance ( address , ( int , long ) ) : #NEWLINE# #INDENT# self . _ip = address #NEWLINE# if ( ( address < 0 ) or ( address > self . _ALL_ONES ) ) : #NEWLINE# #INDENT# raise AddressValueError ( address ) #NEWLINE# #UNINDENT# return #NEWLINE# #UNINDENT# if _compat_has_real_bytes : #NEWLINE# #INDENT# if ( isinstance ( address , bytes ) and ( len ( address ) == 4 ) ) : #NEWLINE# #INDENT# self . _ip = struct . unpack ( '!I' , address ) [ 0 ] #NEWLINE# return #NEWLINE# #UNINDENT# #UNINDENT# addr_str = str ( address ) #NEWLINE# if ( not self . _is_valid_ip ( addr_str ) ) : #NEWLINE# #INDENT# raise AddressValueError ( addr_str ) #NEWLINE# #UNINDENT# self . _ip = self . _ip_int_from_string ( addr_str )