X-Git-Url: http://git.ieval.ro/?p=fdkaac.git;a=blobdiff_plain;f=git2changelog.py;h=2b2ba605fb713aea812dc059c81cdae0b2845ce2;hp=694e9baf3339f9c104705a889e74d8c2e4b7a012;hb=374ae78b970a9249d047f0958472114b16523e23;hpb=0c502d30e5a85850571625989ddffc1c7d9695ff diff --git a/git2changelog.py b/git2changelog.py index 694e9ba..2b2ba60 100755 --- a/git2changelog.py +++ b/git2changelog.py @@ -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'))