From 7f50f108884eb8bda01322c9face51ffa2e0e7f1 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 13 Feb 2009 03:30:07 -0500 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20encode=20the=20message=20ourself?= =?utf8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- jirabot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jirabot.py b/jirabot.py index 7459322..15ca631 100755 --- a/jirabot.py +++ b/jirabot.py @@ -45,7 +45,7 @@ def parse_issue(e): auth=False, cls=zephyr_class, instance=issue, - fields=[e.title.encode('UTF-8'), msg.encode('UTF-8')], + fields=[e.title, msg], ) def parse_comment(e): @@ -66,7 +66,7 @@ def parse_comment(e): auth=False, cls=zephyr_class, instance=issue, - fields=[e.title.encode('UTF-8'), msg.encode('UTF-8')], + fields=[e.title, msg], ) def zerror(msg): @@ -75,7 +75,7 @@ def zerror(msg): auth=False, cls=zephyr_class, instance='jira-error', - fields=['Jira bot error', msg.encode('UTF-8')] + fields=['Jira bot error', msg] ) time_file_new = time_file + '.' + ''.join(random.sample(string.letters, 8)) -- 2.11.4.GIT