#NEWLINE# def send( self , packet = None ) : #NEWLINE# #INDENT# if packet : #NEWLINE# #INDENT# self . _q . append ( packet ) #NEWLINE# #UNINDENT# if self . _can_send ( ) : #NEWLINE# #INDENT# for each in self . _q : #NEWLINE# #INDENT# each = self . _pre_process ( each ) #NEWLINE# self . _transport . write ( each ) #NEWLINE# #UNINDENT# self . _q . clear ( )