Skip to content
Snippets Groups Projects
Commit 79e8f5da authored by hofmockel's avatar hofmockel
Browse files

Use bytes for the internal representation of a WriteBatch

parent 46298a8f
No related branches found
No related tags found
No related merge requests found
...@@ -936,7 +936,7 @@ cdef class WriteBatch(object): ...@@ -936,7 +936,7 @@ cdef class WriteBatch(object):
def __cinit__(self, data=None): def __cinit__(self, data=None):
if data is not None: if data is not None:
self.batch = new db.WriteBatch(data) self.batch = new db.WriteBatch(bytes_to_string(data))
else: else:
self.batch = new db.WriteBatch() self.batch = new db.WriteBatch()
...@@ -956,7 +956,7 @@ cdef class WriteBatch(object): ...@@ -956,7 +956,7 @@ cdef class WriteBatch(object):
self.batch.Clear() self.batch.Clear()
def data(self): def data(self):
return self.batch.Data() return string_to_bytes(self.batch.Data())
def count(self): def count(self):
return self.batch.Count() return self.batch.Count()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment