cython: make empty bytes type consistent for python 3
PYTHON-550
This commit is contained in:
@@ -45,7 +45,7 @@ cdef class Deserializer:
|
|||||||
cdef class DesBytesType(Deserializer):
|
cdef class DesBytesType(Deserializer):
|
||||||
cdef deserialize(self, Buffer *buf, int protocol_version):
|
cdef deserialize(self, Buffer *buf, int protocol_version):
|
||||||
if buf.size == 0:
|
if buf.size == 0:
|
||||||
return ""
|
return b""
|
||||||
return to_bytes(buf)
|
return to_bytes(buf)
|
||||||
|
|
||||||
# this is to facilitate cqlsh integration, which requires bytearrays for BytesType
|
# this is to facilitate cqlsh integration, which requires bytearrays for BytesType
|
||||||
|
Reference in New Issue
Block a user