diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-11-26 13:05:32 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-11-26 13:05:32 +0100 |
commit | ab1837d824ae1adc5eb32b928200ac673da218e7 (patch) | |
tree | 38a93b9989b4a1a5051385e55974ff1b0d7a43ee | |
parent | 7c87fa6c77279b91e272219a52e4f50780a7186f (diff) |
Attempted to fix unicode weirdness.
-rwxr-xr-x | gitnoti.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -85,9 +85,9 @@ def repo_commit_msg(repo, branch, commits): reponame, ('/'+branch) if branch else '', commit.hexsha[:7], - commit.committer.name if commit.author.name == commit.committer.name else '%s/%s' % (commit.committer.name, commit.author.name), + commit.committer.name if commit.author.name.encode('utf8') == commit.committer.name else '%s/%s' % (commit.committer.name, commit.author.name.encode('utf8')), stat, - commit.summary + commit.summary.encode('utf8') ) if options.url: @@ -103,10 +103,10 @@ def repo_commit_msg(repo, branch, commits): short_url = None if short_url: - url = short_url + url = short_url.encode('utf-8') msg += url - return msg.encode('utf-8') + return msg class ReposNotifyEvent(pyinotify.ProcessEvent): def new_repo(self, event): |