def copy_data(data, dest, header=None, use_put=None):
 ret = None
 if use_put:
  udata = data
 else:
  udata = urllib.urlencode(data)
 if utils.is_url(dest):
  ret = copy_remote(udata, dest, use_put)
  if header:
   return ret[header]
 else:
  if header:
   ret = (dest + str(time.time()))
   dest = (ret + '/_task_result')
  copy_local(udata, dest, use_put)
 return ret

def copy_data ( data , dest , header = None , use_put = None ) : ret = None if use_put : udata = data else : udata = urllib . urlencode ( data ) if utils . is_url ( dest ) : ret = copy_remote ( udata , dest , use_put ) if header : return ret [ header ] else : if header : ret = ( dest + str ( time . time ( ) ) ) dest = ( ret + '/_task_result' ) copy_local ( udata , dest , use_put ) return ret
copy data to a destination to aid in debugging .