]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/BPDG/GenVpd.py
BaseTools: remove cmp due to deprecated in python3
[mirror_edk2.git] / BaseTools / Source / Python / BPDG / GenVpd.py
index cd272a2d9a79c615d4a5142b72b15ddd92c8acda..c5e91a3e812ad71ccb2ab88085986db97c2c34e7 100644 (file)
@@ -504,12 +504,12 @@ class GenVPD :
         # Sort fixed offset list in order to find out where has free spaces for the pcd's offset\r
         # value is "*" to insert into.\r
 \r
-        self.PcdFixedOffsetSizeList.sort(lambda x, y: cmp(x.PcdBinOffset, y.PcdBinOffset))\r
+        self.PcdFixedOffsetSizeList.sort(key=lambda x: x.PcdBinOffset)\r
 \r
         #\r
         # Sort the un-fixed pcd's offset by it's size.\r
         #\r
-        self.PcdUnknownOffsetList.sort(lambda x, y: cmp(x.PcdBinSize, y.PcdBinSize))\r
+        self.PcdUnknownOffsetList.sort(key=lambda x: x.PcdBinSize)\r
 \r
         index =0\r
         for pcd in self.PcdUnknownOffsetList:\r