#NEWLINE# def SendCommand( self , command , arg = None ) : #NEWLINE# #INDENT# 'Sends a command to the device.\n\n    Args:\n      command: The command to send.\n      arg: Optional argument to the command.\n    ' #NEWLINE# if ( arg is not None ) : #NEWLINE# #INDENT# command = ( '%s:%s' % ( command , arg ) ) #NEWLINE# #UNINDENT# self . _Write ( cStringIO . StringIO ( command ) , len ( command ) )