diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/flatbuffers/builder.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/flatbuffers/builder.py b/python/flatbuffers/builder.py index 3e7f3ceb..ed509704 100644 --- a/python/flatbuffers/builder.py +++ b/python/flatbuffers/builder.py @@ -350,6 +350,8 @@ class Builder(object): def CreateString(self, s): """CreateString writes a null-terminated byte string as a vector.""" + self.assertNotNested() + if isinstance(s, compat.string_types): x = s.encode() elif isinstance(s, compat.binary_type): |