mirror of https://github.com/nu774/fdkaac.git
update git2changelog to accept non-ascii output
This commit is contained in:
parent
30c77dfb6f
commit
2ecae04c89
|
@ -39,6 +39,6 @@ with Popen(GITLOG_CMD, shell=False, stdout=PIPE).stdout as pipe:
|
|||
commits = parse_gitlog(pipe)
|
||||
commits_by_date_author = groupby(commits, key=lambda x: (x.date, x.author))
|
||||
for (date, author), commits in commits_by_date_author:
|
||||
output('{0} {1}\n\n'.format(date, author))
|
||||
output(u'{0} {1}\n\n'.format(date, author).encode('utf-8'))
|
||||
for c in commits:
|
||||
output(' * {0}{1}\n\n'.format(c.subject, c.ref))
|
||||
output(u' * {0}{1}\n\n'.format(c.subject, c.ref).encode('utf-8'))
|
||||
|
|
Loading…
Reference in New Issue