#NEWLINE# def send( self , lines ) : #NEWLINE# #INDENT# 'Send lines, which which is either a single string or an\n        iterable consisting of strings, to the client. A newline is\n        added after every string. Returns a Bluelet event that sends\n        the data.\n        ' #NEWLINE# if isinstance ( lines , basestring ) : #NEWLINE# #INDENT# lines = [ lines ] #NEWLINE# #UNINDENT# out = ( NEWLINE . join ( lines ) + NEWLINE ) #NEWLINE# log . debug ( '{}' , out [ : ( - 1 ) ] ) #NEWLINE# if isinstance ( lines , unicode ) : #NEWLINE# #INDENT# out = out . encode ( 'utf8' ) #NEWLINE# #UNINDENT# return self . sock . sendall ( out )