summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mojo/public/python/mojo/bindings/descriptor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mojo/public/python/mojo/bindings/descriptor.py b/mojo/public/python/mojo/bindings/descriptor.py
index d3e3b4e..9160736 100644
--- a/mojo/public/python/mojo/bindings/descriptor.py
+++ b/mojo/public/python/mojo/bindings/descriptor.py
@@ -205,7 +205,7 @@ class StringType(PointerType):
def DeserializePointer(self, size, nb_elements, data, handles):
string_array = self._array_type.DeserializeArray(
size, nb_elements, data, handles)
- return unicode(buffer(string_array), 'utf8')
+ return unicode(string_array.tostring(), 'utf8')
class HandleType(SerializableType):