BaseTools: dont use enumerate when un-needed
[mirror_edk2.git] / BaseTools / Source / Python / Common / Expression.py
index 4a7cd974b1212449a135e21ba0c34b5367476e9b..09240de6978180050be22a554293ce86b38f9593 100644 (file)
@@ -899,7 +899,7 @@ class ValueExpressionEx(ValueExpression):
                         LabelDict = {}\r
                         NewPcdValueList = []\r
                         LabelOffset = 0\r
-                        for Index, Item in enumerate(PcdValueList):\r
+                        for Item in PcdValueList:\r
                             # compute byte offset of every LABEL\r
                             LabelList = _ReLabel.findall(Item)\r
                             Item = _ReLabel.sub('', Item)\r
@@ -925,7 +925,7 @@ class ValueExpressionEx(ValueExpression):
                                 except:\r
                                     LabelOffset = LabelOffset + 1\r
 \r
-                        for Index, Item in enumerate(PcdValueList):\r
+                        for Item in PcdValueList:\r
                             # for LABEL parse\r
                             Item = Item.strip()\r
                             try:\r