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:
Carsey, Jaben 2018-03-29 08:02:18 +08:00 committed by Yonghong Zhu
parent 0944818a19
commit 0a014fba41
1 changed files with 1 additions and 1 deletions

View File

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