Add tests and bugfix for b'' messages appearing in python3.

I added unicode and non-unicode message testing for the output() method
on RTMBot. I'm concerned about why the encode('ascii', 'ignore') was
there in the first place, but not having it seems to do the right
thing...
This commit is contained in:
Jeff Ammons 2016-05-27 17:59:40 -07:00
parent 1a4b96584e
commit 2b9e9b752c
4 changed files with 47 additions and 9 deletions

View file

@ -101,7 +101,7 @@ class RtmBot(object):
if limiter:
time.sleep(.1)
limiter = False
message = output[1].encode('ascii', 'ignore')
message = output[1]
channel.send_message("{}".format(message))
limiter = True