#NEWLINE# def get_address( self , ip ) : #NEWLINE# #INDENT# '\n        Return the :class:`NetworkInterface` object, given an IP addres\n        (e.g. "127.0.0.1") or raise `AttributeError`.\n        ' #NEWLINE# for i in self . interfaces : #NEWLINE# #INDENT# if ( i . ip == ip ) : #NEWLINE# #INDENT# return i #NEWLINE# #UNINDENT# #UNINDENT# raise AttributeError