#NEWLINE# def __str__( self ) : #NEWLINE# #INDENT# if self . conf . is_ssl : #NEWLINE# #INDENT# scheme = 'https' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# scheme = 'http' #NEWLINE# #UNINDENT# addr = self . sock . getsockname ( ) #NEWLINE# return ( '%s://%s:%d' % ( scheme , addr [ 0 ] , addr [ 1 ] ) )