for consistency, make NOTICE a str

master
mutantmonkey 2012-05-30 21:13:06 -07:00
parent 172349def2
commit e8442f253f
2 changed files with 2 additions and 2 deletions

2
irc.py
View File

@ -200,7 +200,7 @@ class Bot(asynchat.async_chat):
return self.msg(recipient, textu)
def notice(self, dest, text):
self.write((b'NOTICE', dest), text)
self.write(('NOTICE', dest), text)
def error(self, origin):
try:

View File

@ -86,4 +86,4 @@ class BotTest(unittest.TestCase):
notice = "This is a notice!"
self.bot.notice('jqh', notice)
mock_write.assert_called_once_with((b'NOTICE', 'jqh'), notice)
mock_write.assert_called_once_with(('NOTICE', 'jqh'), notice)