#NEWLINE# def __str__( self ) : #NEWLINE# #INDENT# ( ipaddr , port ) = self . sockaddr #NEWLINE# if ( ':' in ipaddr ) : #NEWLINE# #INDENT# return 'Connecting to [{0}]:{1}...' . format ( ipaddr , self ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return 'Connecting to {0}:{1}...' . format ( ipaddr , port )