mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 12:05:50 +00:00
Python: return None for missing strings. (#4733)
[BREAKING CHANGE] Python: return None for missing strings.
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
3a2c535592
commit
b10123ff63
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user