X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FBPDG%2FGenVpd.py;fp=BaseTools%2FSource%2FPython%2FBPDG%2FGenVpd.py;h=c5e91a3e812ad71ccb2ab88085986db97c2c34e7;hp=cd272a2d9a79c615d4a5142b72b15ddd92c8acda;hb=87010d3d02547c81f1add57a4e2ef0483c65fddf;hpb=abb8e6e97a72c53b1a5110cfdf2795d63acdadbc 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: