BaseTools: Remove extra .keys()

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>
This commit is contained in:
Carsey, Jaben 2018-04-20 23:51:30 +08:00 committed by Yonghong Zhu
parent 6fcd911c32
commit dca689d579
1 changed files with 1 additions and 1 deletions

View File

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