]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Remove extra .keys()
authorCarsey, Jaben <jaben.carsey@intel.com>
Fri, 20 Apr 2018 15:51:30 +0000 (23:51 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Thu, 26 Apr 2018 06:43:25 +0000 (14:43 +0800)
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
BaseTools/Source/Python/GenFds/Fv.py

index ef5896d76b129bfd3f5abe0d1b1246adcebb6827..0fb2bd456a6df8c04d37ce11ce4f337933ae6bcb 100644 (file)
@@ -316,7 +316,7 @@ class FV (FvClassObject):
                                           ' %s' %ErasePloarity    + \\r
                                           T_CHAR_LF)\r
         if not (self.FvAttributeDict is None):\r
-            for FvAttribute in self.FvAttributeDict:\r
+            for FvAttribute in self.FvAttributeDict.keys() :\r
                 if FvAttribute == "FvUsedSizeEnable":\r
                     if self.FvAttributeDict[FvAttribute].upper() in ('TRUE', '1') :\r
                         self.UsedSizeEnable = True\r