]> andersk Git - jira-zephyrbot.git/commitdiff
Don’t encode the message ourself.
authorAnders Kaseorg <anders@liftm.xvm.mit.edu>
Fri, 13 Feb 2009 08:30:07 +0000 (03:30 -0500)
committerAnders Kaseorg <anders@liftm.xvm.mit.edu>
Fri, 13 Feb 2009 08:30:07 +0000 (03:30 -0500)
jirabot.py

index 7459322830172eb57722fd59e174e92dbe5e513e..15ca6314c6e3908dfe4e90eb696e83318fcecbfb 100755 (executable)
@@ -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))
This page took 0.05105 seconds and 5 git commands to generate.