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
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
def _parseForXcode(lines, efifilepath, varnames):\r
status = 0\r
ret = []\r
- for index, line in enumerate(lines):\r
+ for line in lines:\r
line = line.strip()\r
if status == 0 and line == "# Symbols:":\r
status = 1\r
# PCD Name Offset in binary\r
# ======== ================\r
#\r
-# Copyright (c) 2008 - 2017, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
def _parseForXcode(lines, efifilepath):\r
status = 0\r
pcds = []\r
- for index, line in enumerate(lines):\r
+ for line in lines:\r
line = line.strip()\r
if status == 0 and line == "# Symbols:":\r
status = 1\r