BaseTools: use in to compare single chars
instead if 3 Startswith for single chars, just use in with a list of chars Cc: Yonghong Zhu <yonghong.zhu@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
committed by
Yonghong Zhu
parent
0944818a19
commit
0a014fba41
@ -835,7 +835,7 @@ class ValueExpressionEx(ValueExpression):
|
||||
elif Item.startswith('UINT64'):
|
||||
ItemSize = 8
|
||||
ValueType = 'UINT64'
|
||||
elif Item.startswith('"') or Item.startswith("'") or Item.startswith('L'):
|
||||
elif Item[0] in ['"',"'",'L']:
|
||||
ItemSize = 0
|
||||
ValueType = 'VOID*'
|
||||
else:
|
||||
|
Reference in New Issue
Block a user