mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 04:21:13 +00:00
Decode bytes to strings in Python Object API (#8551)
This commit is contained in:
@@ -132,6 +132,8 @@ class NestedUnionTestT(object):
|
||||
if nestedUnionTest is None:
|
||||
return
|
||||
self.name = nestedUnionTest.Name()
|
||||
if self.name is not None:
|
||||
self.name = self.name.decode('utf-8')
|
||||
self.dataType = nestedUnionTest.DataType()
|
||||
self.data = MyGame.Example.NestedUnion.Any.AnyCreator(self.dataType, nestedUnionTest.Data())
|
||||
self.id = nestedUnionTest.Id()
|
||||
|
||||
Reference in New Issue
Block a user