cython: make empty bytes type consistent for python 3
PYTHON-550
This commit is contained in:
parent
31211ff2d2
commit
af5a78f524
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user