def communicate(command=None):
 if (command is not None):
  logger.info(('DEBUG: sending command %s' % command))
  pipe_in.write(command)
 result = []
 while True:
  data = pipe_out.read()
  if (data is None):
   break
  result.append(data)
 logger.info(('DEBUG: result %s' % repr(result)))
 return ''.join(result)

def communicate ( command = None ) : if ( command is not None ) : logger . info ( ( 'DEBUG: sending command %s' % command ) ) pipe_in . write ( command ) result = [ ] while True : data = pipe_out . read ( ) if ( data is None ) : break result . append ( data ) logger . info ( ( 'DEBUG: result %s' % repr ( result ) ) ) return '' . join ( result )
send command to debbuger .