Fix unicode error in py2.7 for example plugin
Strings should now be passed to the plugins as unicode values in py2.7 so we have to make sure that we don't convert those into ascii by using python str instead of u'' strings.
This commit is contained in:
parent
2b9e9b752c
commit
c81bdfec99
8 changed files with 41 additions and 11 deletions
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env python
|
||||
from __future__ import unicode_literals
|
||||
import sys
|
||||
import glob
|
||||
import os
|
||||
|
@ -101,8 +102,7 @@ class RtmBot(object):
|
|||
if limiter:
|
||||
time.sleep(.1)
|
||||
limiter = False
|
||||
message = output[1]
|
||||
channel.send_message("{}".format(message))
|
||||
channel.send_message(output[1])
|
||||
limiter = True
|
||||
|
||||
def crons(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue