From 7c87fa6c77279b91e272219a52e4f50780a7186f Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Thu, 25 Nov 2010 21:24:18 +0100 Subject: Convert unicode to string at end of repo_commit_msg(). --- gitnoti.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gitnoti.py') diff --git a/gitnoti.py b/gitnoti.py index 3324c21..9c9cbd8 100755 --- a/gitnoti.py +++ b/gitnoti.py @@ -103,10 +103,10 @@ def repo_commit_msg(repo, branch, commits): short_url = None if short_url: - url = short_url.encode('utf-8') + url = short_url msg += url - return msg + return msg.encode('utf-8') class ReposNotifyEvent(pyinotify.ProcessEvent): def new_repo(self, event): -- cgit v1.2.3