#NEWLINE# def __init__( self , address ) : #NEWLINE# #INDENT# if isinstance ( address , ( bytes , _compat_int_types ) ) : #NEWLINE# #INDENT# IPv6Address . __init__ ( self , address ) #NEWLINE# self . network = IPv6Network ( self . _ip ) #NEWLINE# self . _prefixlen = self . _max_prefixlen #NEWLINE# return #NEWLINE# #UNINDENT# if isinstance ( address , tuple ) : #NEWLINE# #INDENT# IPv6Address . __init__ ( self , address [ 0 ] ) #NEWLINE# if ( len ( address ) > 1 ) : #NEWLINE# #INDENT# self . _prefixlen = int ( address [ 1 ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _prefixlen = self . _max_prefixlen #NEWLINE# #UNINDENT# self . network = IPv6Network ( address , strict = False ) #NEWLINE# self . netmask = self . network . netmask #NEWLINE# self . hostmask = self . network . hostmask #NEWLINE# return #NEWLINE# #UNINDENT# addr = _split_optional_netmask ( address ) #NEWLINE# IPv6Address . __init__ ( self , addr [ 0 ] ) #NEWLINE# self . network = IPv6Network ( address , strict = False ) #NEWLINE# self . netmask = self . network . netmask #NEWLINE# self . _prefixlen = self . network . _prefixlen #NEWLINE# self . hostmask = self . network . hostmask