use bytes() not unicode() for buffer

This commit is contained in:
Daniel Hiepler 2016-04-10 22:48:04 +02:00
parent c5249e407d
commit 6107e38a69

View file

@ -15,7 +15,7 @@ class IOChannel(asyncore.dispatcher):
self.callback = callback self.callback = callback
self.closeCallback = closeCallback self.closeCallback = closeCallback
self.buffer = "" self.buffer = bytes("")
def sendData(self, data): def sendData(self, data):
self.buffer += data self.buffer += data