def _format_return_data(retcode, stdout=None, stderr=None):
 ret = {'retcode': retcode}
 if (stdout is not None):
  ret['stdout'] = stdout
 if (stderr is not None):
  ret['stderr'] = stderr
 return ret

def _format_return_data ( retcode , stdout = None , stderr = None ) : ret = { 'retcode' : retcode } if ( stdout is not None ) : ret [ 'stdout' ] = stdout if ( stderr is not None ) : ret [ 'stderr' ] = stderr return ret
creates a dictionary from the parameters .