diff options
author | Gary Lin <glin@suse.com> | 2018-06-25 18:31:27 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-06-27 16:33:22 +0800 |
commit | 87d2afd07c822e6d5ab12bc8dc0f0bfa31bea679 (patch) | |
tree | 241acc21adfdb9ceaa71a7598f4989f87aaf3e30 /BaseTools/Source/Python/Common/Misc.py | |
parent | 72443dd25014a8b6209895640af36dec33da51e0 (diff) | |
download | edk2-87d2afd07c822e6d5ab12bc8dc0f0bfa31bea679.tar.gz edk2-87d2afd07c822e6d5ab12bc8dc0f0bfa31bea679.tar.bz2 edk2-87d2afd07c822e6d5ab12bc8dc0f0bfa31bea679.zip |
BaseTools: Remove the old python "not-equal"
Replace "<>" with "!=" to be compatible with python3.
Contributed-under: TianoCore Contribution Agreement 1.1
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Common/Misc.py')
-rw-r--r-- | BaseTools/Source/Python/Common/Misc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Common/Misc.py b/BaseTools/Source/Python/Common/Misc.py index 5197818d3f..01171adb9b 100644 --- a/BaseTools/Source/Python/Common/Misc.py +++ b/BaseTools/Source/Python/Common/Misc.py @@ -1293,7 +1293,7 @@ def ParseDevPathValue (Value): def ParseFieldValue (Value):
if type(Value) == type(0):
return Value, (Value.bit_length() + 7) / 8
- if type(Value) <> type(''):
+ if type(Value) != type(''):
raise BadExpression('Type %s is %s' %(Value, type(Value)))
Value = Value.strip()
if Value.startswith(TAB_UINT8) and Value.endswith(')'):
|