mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-03 02:37:31 +00:00
Python: return None for missing strings. (#4733)
[BREAKING CHANGE] Python: return None for missing strings.
This commit is contained in:
parent
3a2c535592
commit
b10123ff63
4 changed files with 4 additions and 4 deletions
|
|
@ -194,7 +194,7 @@ static void GetStringField(const StructDef &struct_def, const FieldDef &field,
|
|||
code += OffsetPrefix(field);
|
||||
code += Indent + Indent + Indent + "return " + GenGetter(field.value.type);
|
||||
code += "o + self._tab.Pos)\n";
|
||||
code += Indent + Indent + "return bytes()\n\n";
|
||||
code += Indent + Indent + "return None\n\n";
|
||||
}
|
||||
|
||||
// Get the value of a union from an object.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue