def BuildClonePostBody(file_tuples):
 file_list = []
 for tup in file_tuples:
  path = tup[1]
  tup = tup[2:]
  file_list.append(TUPLE_DELIMITER.join(([path] + list(tup))))
 return LIST_DELIMITER.join(file_list)

def BuildClonePostBody ( file_tuples ) : file_list = [ ] for tup in file_tuples : path = tup [ 1 ] tup = tup [ 2 : ] file_list . append ( TUPLE_DELIMITER . join ( ( [ path ] + list ( tup ) ) ) ) return LIST_DELIMITER . join ( file_list )
build the post body for the /api/clone{files .