use bytes() not unicode() for buffer
This commit is contained in:
parent
c5249e407d
commit
6107e38a69
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue