summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/BPDG
diff options
context:
space:
mode:
authorFeng, YunhuaX <yunhuax.feng@intel.com>2018-08-08 14:56:14 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-08-23 15:01:27 +0800
commit87010d3d02547c81f1add57a4e2ef0483c65fddf (patch)
tree297ffd111cabe8b38cacbe408ceca4190385f448 /BaseTools/Source/Python/BPDG
parentabb8e6e97a72c53b1a5110cfdf2795d63acdadbc (diff)
downloadedk2-87010d3d02547c81f1add57a4e2ef0483c65fddf.tar.gz
edk2-87010d3d02547c81f1add57a4e2ef0483c65fddf.tar.bz2
edk2-87010d3d02547c81f1add57a4e2ef0483c65fddf.zip
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>
Diffstat (limited to 'BaseTools/Source/Python/BPDG')
-rw-r--r--BaseTools/Source/Python/BPDG/GenVpd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/BPDG/GenVpd.py b/BaseTools/Source/Python/BPDG/GenVpd.py
index cd272a2d9a..c5e91a3e81 100644
--- a/BaseTools/Source/Python/BPDG/GenVpd.py
+++ b/BaseTools/Source/Python/BPDG/GenVpd.py
@@ -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: