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:
Ole Troan
2016-04-28 12:50:20 +02:00
committed by Dave Barach
parent 194ebc58b6
commit e6749e4f6b
2 changed files with 23 additions and 8 deletions

View File

@ -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):