# PI FvHeader is 0x48 byte\r
FvHeaderBuffer = FvFileObj.read(0x48)\r
# FV alignment position.\r
- FvAlignmentValue = 1 << (ord (FvHeaderBuffer[0x2E]) & 0x1F)\r
+ FvAlignmentValue = 1 << (FvHeaderBuffer[0x2E] & 0x1F)\r
FvFileObj.close()\r
if FvAlignmentValue > MaxFvAlignment:\r
MaxFvAlignment = FvAlignmentValue\r
if MaxFvAlignment >= 0x1000000:\r
self.Alignment = "16M"\r
else:\r
- self.Alignment = str(MaxFvAlignment / 0x100000) + "M"\r
+ self.Alignment = str(MaxFvAlignment // 0x100000) + "M"\r
else:\r
- self.Alignment = str (MaxFvAlignment / 0x400) + "K"\r
+ self.Alignment = str (MaxFvAlignment // 0x400) + "K"\r
else:\r
# MaxFvAlignment is less than 1K\r
self.Alignment = str (MaxFvAlignment)\r
if FvAlignmentValue >= 0x1000000:\r
self.Alignment = "16M"\r
else:\r
- self.Alignment = str(FvAlignmentValue / 0x100000) + "M"\r
+ self.Alignment = str(FvAlignmentValue // 0x100000) + "M"\r
else:\r
- self.Alignment = str (FvAlignmentValue / 0x400) + "K"\r
+ self.Alignment = str (FvAlignmentValue // 0x400) + "K"\r
else:\r
# FvAlignmentValue is less than 1K\r
self.Alignment = str (FvAlignmentValue)\r