]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/Fd.py
BaseTools: do the list and iterator translation
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / Fd.py
index bb58928afaceb998c69c124b16fbfb79e65af1a4..0ba6decc9eb59ade105fafad541235bac01773c8 100644 (file)
@@ -74,7 +74,7 @@ class FD(FDClassObject):
                 HasCapsuleRegion = True\r
                 break\r
         if HasCapsuleRegion:\r
-            TempFdBuffer = BytesIO('')\r
+            TempFdBuffer = BytesIO()\r
             PreviousRegionStart = -1\r
             PreviousRegionSize = 1\r
 \r
@@ -103,7 +103,7 @@ class FD(FDClassObject):
                 GenFdsGlobalVariable.VerboseLogger('Call each region\'s AddToBuffer function')\r
                 RegionObj.AddToBuffer (TempFdBuffer, self.BaseAddress, self.BlockSizeList, self.ErasePolarity, GenFdsGlobalVariable.ImageBinDict, self.vtfRawDict, self.DefineVarDict)\r
 \r
-        FdBuffer = BytesIO('')\r
+        FdBuffer = BytesIO()\r
         PreviousRegionStart = -1\r
         PreviousRegionSize = 1\r
         for RegionObj in self.RegionList :\r