diff options
Diffstat (limited to 'BaseTools/Source/Python/Common')
-rw-r--r-- | BaseTools/Source/Python/Common/Expression.py | 4 | ||||
-rw-r--r-- | BaseTools/Source/Python/Common/Misc.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/Common/Expression.py b/BaseTools/Source/Python/Common/Expression.py index 4a7cd974b1..09240de697 100644 --- a/BaseTools/Source/Python/Common/Expression.py +++ b/BaseTools/Source/Python/Common/Expression.py @@ -899,7 +899,7 @@ class ValueExpressionEx(ValueExpression): LabelDict = {}
NewPcdValueList = []
LabelOffset = 0
- for Index, Item in enumerate(PcdValueList):
+ for Item in PcdValueList:
# compute byte offset of every LABEL
LabelList = _ReLabel.findall(Item)
Item = _ReLabel.sub('', Item)
@@ -925,7 +925,7 @@ class ValueExpressionEx(ValueExpression): except:
LabelOffset = LabelOffset + 1
- for Index, Item in enumerate(PcdValueList):
+ for Item in PcdValueList:
# for LABEL parse
Item = Item.strip()
try:
diff --git a/BaseTools/Source/Python/Common/Misc.py b/BaseTools/Source/Python/Common/Misc.py index 7d44fdcf8b..8f479ace4c 100644 --- a/BaseTools/Source/Python/Common/Misc.py +++ b/BaseTools/Source/Python/Common/Misc.py @@ -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
|