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
@ -788,10 +788,7 @@ class InfBuildData(ModuleBuildClassObject):
|
||||
self._Includes.append(self._SourceOverridePath)
|
||||
|
||||
Macros = self._Macros
|
||||
if 'PROCESSOR' in GlobalData.gEdkGlobal.keys():
|
||||
Macros['PROCESSOR'] = GlobalData.gEdkGlobal['PROCESSOR']
|
||||
else:
|
||||
Macros['PROCESSOR'] = self._Arch
|
||||
Macros['PROCESSOR'] = GlobalData.gEdkGlobal.get('PROCESSOR', self._Arch)
|
||||
RecordList = self._RawData[MODEL_EFI_INCLUDE, self._Arch, self._Platform]
|
||||
for Record in RecordList:
|
||||
if Record[0].find('EDK_SOURCE') > -1:
|
||||
|
Reference in New Issue
Block a user