BaseTools: refactor and remove out of date use of .keys()
this is no longer required to make dictionary objects iterable. 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
674e2014ce
commit
98120f5fe2
@ -486,10 +486,7 @@ class InfPomAlignment(ModuleObject):
|
||||
#
|
||||
# Get all LibraryClasses
|
||||
#
|
||||
LibClassObj = self.Parser.InfLibraryClassSection.LibraryClasses
|
||||
Keys = LibClassObj.keys()
|
||||
for Key in Keys:
|
||||
LibraryClassData = LibClassObj[Key]
|
||||
for LibraryClassData in self.Parser.InfLibraryClassSection.LibraryClasses.values():
|
||||
for Item in LibraryClassData:
|
||||
LibraryClass = CommonObject.LibraryClassObject()
|
||||
LibraryClass.SetUsage(DT.USAGE_ITEM_CONSUMES)
|
||||
|
Reference in New Issue
Block a user