BaseTools: dont use enumerate when un-needed
Since we only use the item from the list and not the numeric value, dont bother with enumerate() 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
38504ad3e3
commit
e52aed0d85
@ -76,7 +76,7 @@ def GetVariableOffset(mapfilepath, efifilepath, varnames):
|
||||
def _parseForXcode(lines, efifilepath, varnames):
|
||||
status = 0
|
||||
ret = []
|
||||
for index, line in enumerate(lines):
|
||||
for line in lines:
|
||||
line = line.strip()
|
||||
if status == 0 and line == "# Symbols:":
|
||||
status = 1
|
||||
|
Reference in New Issue
Block a user