#NEWLINE# def __getslice__( self , start , stop ) : #NEWLINE# #INDENT# warnings . warn ( 'IPv4Address.__getitem__ is deprecated.  Use attributes instead.' , category = DeprecationWarning , stacklevel = 2 ) #NEWLINE# return ( ( self . _bwHack or self . type ) , self . host , self . port ) [ start : stop ]