network: The recieve buffer should be a bytestring

This commit is contained in:
Stein Magnus Jodal 2012-11-19 22:18:51 +01:00
parent eab399357f
commit 6aa1ee7f5c

View File

@ -317,7 +317,7 @@ class LineProtocol(pykka.ThreadingActor):
super(LineProtocol, self).__init__()
self.connection = connection
self.prevent_timeout = False
self.recv_buffer = ''
self.recv_buffer = b''
if self.delimiter:
self.delimiter = re.compile(self.delimiter)