minor bug fixes for python3 + .c++ file support that is not destructive

This commit is contained in:
Sergii Vystoropskyi
2021-04-08 00:53:45 -07:00
parent 3ebf8500d8
commit 31ffe4ae2b
2 changed files with 8 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ def main():
is_union = True
field['c_name'] = field['name'][0].upper() + field['name'][1:]
if 'slot' in field:
field['type'] = field['slot']['type'].keys()[0]
field['type'] = list(field['slot']['type'].keys())[0]
if not isinstance(field['slot']['type'][field['type']], dict):
continue
sub_type = field['slot']['type'][field['type']].get('typeId', None)