diff options
author | Carsey, Jaben </o=Intel/ou=Americas01/cn=Workers/cn=Carsey, Jaben> | 2018-03-29 08:02:18 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-03-30 09:16:27 +0800 |
commit | 0a014fba41b631258687f56e630518b54817d062 (patch) | |
tree | 224c8cc84a74deb533061481d1238aa95dc2f452 /BaseTools/Source/Python | |
parent | 0944818a1972b07b09b53a2a1e88295cd92361cf (diff) | |
download | edk2-0a014fba41b631258687f56e630518b54817d062.tar.gz edk2-0a014fba41b631258687f56e630518b54817d062.tar.bz2 edk2-0a014fba41b631258687f56e630518b54817d062.zip |
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>
Diffstat (limited to 'BaseTools/Source/Python')
-rw-r--r-- | BaseTools/Source/Python/Common/Expression.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Common/Expression.py b/BaseTools/Source/Python/Common/Expression.py index 8e1a9866e1..320f001500 100644 --- a/BaseTools/Source/Python/Common/Expression.py +++ b/BaseTools/Source/Python/Common/Expression.py @@ -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:
|