def report_issues(output, flaky_tests):
 jira_keys = frozenset().union(*(flaky.jira_keys for (_, flaky) in flaky_tests))
 for jira_key in sorted(jira_keys):
  output.write('{}\n'.format(jira_key))

def report_issues ( output , flaky_tests ) : jira_keys = frozenset ( ) . union ( * ( flaky . jira_keys for ( _ , flaky ) in flaky_tests ) ) for jira_key in sorted ( jira_keys ) : output . write ( '{}\n' . format ( jira_key ) )
print all issues for flaky tests .