def rankSetList(s):
  """
  Returns a string listing all the ranks in a set. Empty set: "none".
  Set containing -1: "all".
  """
  if len(s) == 0:
    return 'none'
  elif -1 in s:
    return 'all'
  else:
    return ','.join([str(x) for x in s])