From: Anders Kaseorg Date: Fri, 13 Feb 2009 08:30:07 +0000 (-0500) Subject: Don’t encode the message ourself. X-Git-Url: http://andersk.mit.edu/gitweb/jira-zephyrbot.git/commitdiff_plain/7f50f108884eb8bda01322c9face51ffa2e0e7f1 Don’t encode the message ourself. --- 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))