BaseTools: refactor and remove un-needed use of .keys() on dictionaries
sometimes just delete it. sometimes the loop needed .values() instead Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@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:
committed by
Yonghong Zhu
parent
55c84777ee
commit
9eb87141ec
@ -613,7 +613,7 @@ class FfsInfStatement(FfsInfStatementClassObject):
|
||||
# the file name FILE_GUIDmodule.inf, then PlatformDataBase.Modules use FILE_GUIDmodule.inf as key,
|
||||
# but the path (self.MetaFile.Path) is the real path
|
||||
#
|
||||
for key in PlatformDataBase.Modules.keys():
|
||||
for key in PlatformDataBase.Modules:
|
||||
if InfFileKey == str((PlatformDataBase.Modules[key]).MetaFile.Path):
|
||||
DscArchList.append (Arch)
|
||||
break
|
||||
|
Reference in New Issue
Block a user