#NEWLINE# def __init__( self , address ) : #NEWLINE# #INDENT# "\n        Args:\n            address: A string or integer representing the IP\n\n              Additionally, an integer can be passed, so\n              IPv4Address('192.0.2.1') == IPv4Address(3221225985).\n              or, more generally\n              IPv4Address(int(IPv4Address('192.0.2.1'))) ==\n                IPv4Address('192.0.2.1')\n\n        Raises:\n            AddressValueError: If ipaddress isn't a valid IPv4 address.\n\n        " #NEWLINE# if isinstance ( address , _compat_int_types ) : #NEWLINE# #INDENT# self . _check_int_address ( address ) #NEWLINE# self . _ip = address #NEWLINE# return #NEWLINE# #UNINDENT# if isinstance ( address , bytes ) : #NEWLINE# #INDENT# self . _check_packed_address ( address , 4 ) #NEWLINE# bvs = _compat_bytes_to_byte_vals ( address ) #NEWLINE# self . _ip = _compat_int_from_byte_vals ( bvs , 'big' ) #NEWLINE# return #NEWLINE# #UNINDENT# addr_str = _compat_str ( address ) #NEWLINE# if ( '/' in addr_str ) : #NEWLINE# #INDENT# raise AddressValueError ( ( "Unexpected '/' in %r" % bvs ) ) #NEWLINE# #UNINDENT# self . _ip = self . _ip_int_from_string ( addr_str )