Python: return None for missing strings. (#4733)

[BREAKING CHANGE] Python: return None for missing strings.
This commit is contained in:
Tin Tvrtković
2018-05-10 19:34:20 +02:00
committed by Wouter van Oortmerssen
parent 3a2c535592
commit b10123ff63
4 changed files with 4 additions and 4 deletions

View File

@@ -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.