(tag)
return tuple(result)
Returns a sequence of (domain name, task name) pairs for the given tag.
Returns a sequence of (domain name, task name) pairs for the given tag.
Returns a sequence of ( domain name task name ) pairs for the given tag .
def _get_tasks(tag):
  """Returns a sequence of (domain name, task name) pairs for the given tag."""
  result = []

  for domain_name in sorted(_DOMAINS.keys()):

    domain = _DOMAINS[domain_name]

    if tag is None:
      tasks_in_domain = domain.SUITE
    else:
      tasks_in_domain = domain.SUITE.tagged(tag)

    for task_name in tasks_in_domain.keys():
      result.append((domain_name, task_name))

  return tuple(result)
def _get_tasks ( tag ) : result = [ ] for domain_name in sorted ( _DOMAINS . keys ( ) ) : domain = _DOMAINS [ domain_name ] if tag is None : tasks_in_domain = domain . SUITE else : tasks_in_domain = domain . SUITE . tagged ( tag ) for task_name in tasks_in_domain . keys ( ) : result . append ( ( domain_name , task_name ) ) return tuple ( result )