#NEWLINE# def send_success( self , id_val = 1 ) : #NEWLINE# #INDENT# ' Utility for transmitting success to the client ' #NEWLINE# succ = { #NEWLINE# #INDENT# 'id' : id_val , #NEWLINE# 'result' : True , #NEWLINE# 'error' : None , #NEWLINE# #UNINDENT# } #NEWLINE# if __debug__ : #NEWLINE# #INDENT# self . logger . debug ( 'success response: {}' . format ( pformat ( succ ) ) ) #NEWLINE# #UNINDENT# self . write_queue . put ( ( json . dumps ( succ , separators = ( ',' , ':' ) ) + '\n' ) )