Python API: Fix mistaken removal of '_' in field names.
Change-Id: I1e39970bc6ded9e6da64385b2289321ba43bebfd Signed-off-by: Ole Troan <ot@cisco.com>
This commit is contained in:
@ -52,7 +52,11 @@ type_size = {'u8': 1,
|
||||
def get_args(t):
|
||||
argslist = []
|
||||
for i in t:
|
||||
argslist.append(i[1].replace('_',''))
|
||||
if i[1][0] == '_':
|
||||
argslist.append(i[1][1:])
|
||||
else:
|
||||
argslist.append(i[1])
|
||||
|
||||
return argslist
|
||||
|
||||
def get_pack(t):
|
||||
|
Reference in New Issue
Block a user