#NEWLINE# def postInternalCommand( self , int_cmd , thread_id ) : #NEWLINE# #INDENT# ' if thread_id is *, post to all ' #NEWLINE# if ( thread_id == '*' ) : #NEWLINE# #INDENT# for k in self . cmdQueue . keys ( ) : #NEWLINE# #INDENT# self . cmdQueue [ k ] . put ( int_cmd ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# queue = self . getInternalQueue ( thread_id ) #NEWLINE# queue . put ( int_cmd )