summaryrefslogtreecommitdiff
path: root/BaseTools/Scripts/SmiHandlerProfileSymbolGen.py
diff options
context:
space:
mode:
authorCarsey, Jaben </o=Intel/ou=Americas01/cn=Workers/cn=Carsey, Jaben>2018-04-06 07:14:02 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-04-10 10:05:16 +0800
commit98120f5fe2199de29c0cce8e92c692b23adf0cf7 (patch)
treecba80edbbad54736208d40182c7ecdaf0a946f7d /BaseTools/Scripts/SmiHandlerProfileSymbolGen.py
parent674e2014ce63040880208f2a0494fa1849f28f43 (diff)
downloadedk2-98120f5fe2199de29c0cce8e92c692b23adf0cf7.zip
edk2-98120f5fe2199de29c0cce8e92c692b23adf0cf7.tar.gz
edk2-98120f5fe2199de29c0cce8e92c692b23adf0cf7.tar.bz2
BaseTools: refactor and remove out of date use of .keys()
this is no longer required to make dictionary objects iterable. 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>
Diffstat (limited to 'BaseTools/Scripts/SmiHandlerProfileSymbolGen.py')
-rw-r--r--BaseTools/Scripts/SmiHandlerProfileSymbolGen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Scripts/SmiHandlerProfileSymbolGen.py b/BaseTools/Scripts/SmiHandlerProfileSymbolGen.py
index f03278b..26c0924 100644
--- a/BaseTools/Scripts/SmiHandlerProfileSymbolGen.py
+++ b/BaseTools/Scripts/SmiHandlerProfileSymbolGen.py
@@ -204,7 +204,7 @@ def genGuidString(guidreffile):
if len(guidLineList) == 2:
guid = guidLineList[0]
guidName = guidLineList[1]
- if guid not in dictGuid.keys() :
+ if guid not in dictGuid :
dictGuid[guid] = guidName
def createSym(symbolName):
@@ -256,7 +256,7 @@ def main():
for smiEntry in SmiEntry:
if smiEntry.hasAttribute("HandlerType"):
guidValue = smiEntry.getAttribute("HandlerType")
- if guidValue in dictGuid.keys() :
+ if guidValue in dictGuid:
smiEntry.setAttribute("HandlerType", dictGuid[guidValue])
SmiHandler = smiEntry.getElementsByTagName("SmiHandler")
for smiHandler in SmiHandler: