cython: make empty bytes type consistent for python 3

PYTHON-550
This commit is contained in:
Adam Holmberg 2016-04-27 11:51:18 -05:00
parent 31211ff2d2
commit af5a78f524

View File

@ -45,7 +45,7 @@ cdef class Deserializer:
cdef class DesBytesType(Deserializer):
cdef deserialize(self, Buffer *buf, int protocol_version):
if buf.size == 0:
return ""
return b""
return to_bytes(buf)
# this is to facilitate cqlsh integration, which requires bytearrays for BytesType