minor bug fixes for python3 + .c++ file support that is not destructive
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user