Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af5a78f

Browse files
committed
cython: make empty bytes type consistent for python 3
PYTHON-550
1 parent 31211ff commit af5a78f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cassandra/deserializers.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ cdef class Deserializer:
4545
cdef class DesBytesType(Deserializer):
4646
cdef deserialize(self, Buffer *buf, int protocol_version):
4747
if buf.size == 0:
48-
return ""
48+
return b""
4949
return to_bytes(buf)
5050

5151
# this is to facilitate cqlsh integration, which requires bytearrays for BytesType

0 commit comments

Comments
 (0)