def _write_multi_issues_file(repos_and_issues, path):
    with open(str(path), mode='w', encoding=sys.getdefaultencoding()) as file:
        cur = 0
        for (repo_name, issue) in repos_and_issues:
            if cur:
                file.write('\n')
            file.write('#ISSUE#{}#{}\n'.format(repo_name, issue.title))
            file.write(issue.body)
            cur += 1
def _write_multi_issues_file(repos_and_issues, path):
    with open(str(path), mode='w', encoding=sys.getdefaultencoding()) as file:
        cur = 0
        for (repo_name, issue) in repos_and_issues:
            if cur:
                file.write('\n')
            file.write('#ISSUE#{}#{}\n'.format(repo_name, issue.title))
            file.write(issue.body)
            cur += 1