BaseTools: remove cmp due to deprecated in python3
remove cmp due to deprecated in python3 Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
committed by
Yonghong Zhu
parent
abb8e6e97a
commit
87010d3d02
@ -504,12 +504,12 @@ class GenVPD :
|
||||
# Sort fixed offset list in order to find out where has free spaces for the pcd's offset
|
||||
# value is "*" to insert into.
|
||||
|
||||
self.PcdFixedOffsetSizeList.sort(lambda x, y: cmp(x.PcdBinOffset, y.PcdBinOffset))
|
||||
self.PcdFixedOffsetSizeList.sort(key=lambda x: x.PcdBinOffset)
|
||||
|
||||
#
|
||||
# Sort the un-fixed pcd's offset by it's size.
|
||||
#
|
||||
self.PcdUnknownOffsetList.sort(lambda x, y: cmp(x.PcdBinSize, y.PcdBinSize))
|
||||
self.PcdUnknownOffsetList.sort(key=lambda x: x.PcdBinSize)
|
||||
|
||||
index =0
|
||||
for pcd in self.PcdUnknownOffsetList:
|
||||
|
Reference in New Issue
Block a user