#NEWLINE# def handle_command( self , cmd ) : #NEWLINE# #INDENT# 'Handle a command for this proxy' #NEWLINE# command_name = cmd . pop ( 'command' ) #NEWLINE# command_method = getattr ( self , command_name , None ) #NEWLINE# if ( ( command_method is None ) or ( not command_method . is_command ) ) : #NEWLINE# #INDENT# logging . error ( '"%s" is not a valid command for a %s' , command_name , self . __class__ . __name__ ) #NEWLINE# return #NEWLINE# #UNINDENT# command_method ( ** cmd )